Home
last modified time | relevance | path

Searched refs:python (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/llvm-project-15.0.7/llvm/utils/lit/tests/Inputs/shtest-not/
H A Dnot-calls-external.txt7 # RUN: not %{python} fail.py
8 # RUN: not not %{python} pass.py
9 # RUN: not not not %{python} fail.py
10 # RUN: not not not not %{python} pass.py
15 # RUN: not not --crash %{python} pass.py
16 # RUN: not not --crash %{python} fail.py
17 # RUN: not not --crash not %{python} pass.py
18 # RUN: not not --crash not %{python} fail.py
29 # RUN: env FOO=1 not %{python} fail.py \
32 # RUN: not env FOO=1 BAR=1 %{python} fail.py \
[all …]
H A Dexclamation-calls-external.txt3 # RUN: ! %{python} fail.py
4 # RUN: ! ! %{python} pass.py
5 # RUN: ! ! ! %{python} fail.py
6 # RUN: ! ! ! ! %{python} pass.py
9 # RUN: ! %{python} pass.py
/llvm-project-15.0.7/lldb/unittests/ScriptInterpreter/Python/
H A DPythonTestSuite.cpp80 return python::PythonObject(); in LLDBSwigPythonCreateSyntheticProvider()
86 return python::PythonObject(); in LLDBSwigPythonCreateCommandObject()
93 return python::PythonObject(); in LLDBSwigPythonCreateScriptedThreadPlan()
103 python::PythonObject
107 return python::PythonObject(); in LLDBSwigPythonCreateScriptedBreakpointResolver()
189 python::PythonObject
193 return python::PythonObject(); in LLDBSWIGPythonCreateOSPlugin()
200 return python::PythonObject(); in LLDBSwigPythonCreateScriptedProcess()
207 return python::PythonObject(); in LLDBSwigPythonCreateScriptedThread()
212 return python::PythonObject(); in LLDBSWIGPython_CreateFrameRecognizer()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ScriptInterpreter/Python/
H A DScriptedPythonInterface.cpp40 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
41 python::PythonList result_list(python::PyRefType::Borrowed, p.get()); in ExtractValueFromPythonObject()
48 StructuredData::DictionarySP>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
49 python::PythonDictionary result_dict(python::PyRefType::Borrowed, p.get()); in ExtractValueFromPythonObject()
55 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
68 python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
84 llvm::Optional<MemoryRegionInfo>>(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
H A DSWIGPythonBridge.h58 python::PythonObject LLDBSwigPythonCreateScriptedProcess(
63 python::PythonObject LLDBSwigPythonCreateScriptedThread(
85 python::PythonObject
90 python::PythonObject
95 python::PythonObject LLDBSwigPythonCreateScriptedThreadPlan(
104 python::PythonObject LLDBSwigPythonCreateScriptedBreakpointResolver(
112 python::PythonObject LLDBSwigPythonCreateScriptedStopHook(
152 python::PythonObject
157 python::PythonObject
H A DScriptedPythonInterface.h32 T ExtractValueFromPythonObject(python::PythonObject &p, Status &error) { in ExtractValueFromPythonObject()
38 using namespace python; in Dispatch() local
132 python::PythonObject &p, Status &error);
137 StructuredData::DictionarySP>(python::PythonObject &p, Status &error);
141 python::PythonObject &p, Status &error);
146 python::PythonObject &p, Status &error);
151 llvm::Optional<MemoryRegionInfo>>(python::PythonObject &p, Status &error);
H A DScriptInterpreterPythonImpl.h383 python::PythonModule &GetMainModule();
385 python::PythonDictionary &GetSessionDictionary();
397 python::PythonObject m_saved_stdin;
398 python::PythonObject m_saved_stdout;
399 python::PythonObject m_saved_stderr;
400 python::PythonModule m_main_module;
401 python::PythonDictionary m_session_dict;
402 python::PythonDictionary m_sys_module_dict;
403 python::PythonObject m_run_one_line_function;
404 python::PythonObject m_run_one_line_str_global;
[all …]
/llvm-project-15.0.7/lldb/bindings/python/
H A DCMakeLists.txt12 -python
17 ${CMAKE_CURRENT_SOURCE_DIR}/python.swig
28 OUTPUT ${LLVM_RUNTIME_OUTPUT_INTDIR}/lldb-python
30 COMMAND ${CMAKE_COMMAND} -E copy lldb-python ${LLVM_RUNTIME_OUTPUT_INTDIR}/lldb-python
33 add_custom_target(lldb-python-wrapper ALL DEPENDS
34 ${LLVM_RUNTIME_OUTPUT_INTDIR}/lldb-python
45 "${LLDB_SOURCE_DIR}/bindings/python/createPythonInit.py"
80 # Distribute the examples as python packages.
116 FILES "${LLDB_SOURCE_DIR}/examples/python/crashlog.py"
145 add_dependencies(${swig_target} lldb-python-wrapper)
[all …]
H A Dpython.swig40 a way that is incompatible with our usage of the python module as __init__.py
55 // These versions will not generate working python modules, so error out early.
118 %include "python-typemaps.swig"
125 #include "../bindings/python/python-swigsafecast.swig"
127 using namespace lldb_private::python;
132 %include "python-extensions.swig"
133 %include "python-wrapper.swig"
/llvm-project-15.0.7/llvm/utils/valgrind/
H A Di386-pc-linux-gnu.supp10 # http://svn.python.org/projects/python/trunk/Misc/README.valgrind
15 obj:/usr/bin/python*
21 obj:/usr/bin/python*
27 obj:/usr/bin/python*
37 We don't care if python leaks
40 obj:/usr/bin/python*
H A Dx86_64-pc-linux-gnu.supp9 # http://svn.python.org/projects/python/trunk/Misc/README.valgrind
14 obj:/usr/bin/python*
20 obj:/usr/bin/python*
26 obj:/usr/bin/python*
56 We don't care if python leaks
59 obj:/usr/bin/python*
/llvm-project-15.0.7/lldb/test/Shell/ScriptInterpreter/Python/
H A Dpython.test1 # RUN: %lldb --script-language python -o 'script print("{}".format(1000+100+10+1))' 2>&1 | FileChec…
2 # RUN: %lldb --script-language python -o 'script -- print("{}".format(1000+100+10+1))' 2>&1 | FileC…
3 # RUN: %lldb --script-language python -o 'script --language default -- print("{}".format(1000+100+1…
4 # RUN: %lldb -o 'script -l python -- print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %s
6 # RUN: %lldb -o 'script --language python -- print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %s
7 # RUN: %lldb -o 'script --language=python -- print("{}".format(1000+100+10+1))' 2>&1 | FileCheck %s
H A Dcommand_import.test7 # RUN: %lldb --script-language python -o 'command script import %t/foo.py' 2>&1 | FileCheck %s --ch…
10 # RUN: %lldb --script-language python -o 'command script import %t/foo-bar.py' 2>&1 | FileCheck %s …
14 # RUN: %lldb --script-language python -o 'command script import %t/foo.bar.py' 2>&1 | FileCheck %s …
15 # RUN: %lldb --script-language python -o 'command script import %t/foo.bar' 2>&1 | FileCheck %s --c…
H A Dsilent_command_script_import.test4 # RUN: %lldb --script-language python -o 'command script import %t/foo.py' 2>&1 | FileCheck %s
5 # RUN: %lldb --script-language python -o 'command script import -s %t/foo.py' 2>&1 | FileCheck %s -…
6 # RUN: %lldb --script-language python -o 'command script import --silent %t/foo.py' 2>&1 | FileChec…
/llvm-project-15.0.7/utils/bazel/llvm-project-overlay/mlir/python/
H A DBUILD.bazel108 "-gen-python-op-bindings",
152 "-gen-python-op-bindings",
219 "-gen-python-op-bindings",
263 "-gen-python-op-bindings",
306 "-gen-python-op-bindings",
347 "-gen-python-op-bindings",
389 "-gen-python-op-bindings",
431 "-gen-python-op-bindings",
474 "-gen-python-op-bindings",
517 "-gen-python-op-bindings",
[all …]
/llvm-project-15.0.7/llvm/utils/lit/utils/
H A Dcheck-coverage24 if ! python -c \
42 (cd tests && python -m coverage combine)
45 (cd tests && python -m coverage report)
49 (cd tests && python -m coverage html)
/llvm-project-15.0.7/llvm/utils/lit/tests/Inputs/shtest-env/
H A Denv-calls-env.txt3 # RUN: env env %{python} print_environment.py \
9 # RUN: env FOO=2 env BAR=1 %{python} print_environment.py \
15 # RUN: env -u FOO env -u BAR %{python} print_environment.py \
21 # RUN: env -u FOO BAR=1 env -u BAR FOO=2 %{python} print_environment.py \
27 # RUN: env -u FOO BAR=1 env -u BAR FOO=2 env BAZ=3 %{python} print_environment.py \
/llvm-project-15.0.7/llvm/utils/lit/tests/Inputs/shtest-shell/
H A Ddev-null.txt4 # RUN: %{python} %S/check_args.py --my_arg /dev/null | FileCheck %s --check-prefix=CHECK1
7 # RUN: %{python} %S/check_args.py --my_arg=/dev/null | FileCheck %s --check-prefix=CHECK2
10 # RUN: %{python} %S/check_args.py -a /dev/null | FileCheck %s --check-prefix=CHECK3
13 # RUN: %{python} %S/check_args.py -a=/dev/null | FileCheck %s --check-prefix=CHECK4
H A Dvalid-shell.txt5 # RUN: %{python} %S/check_path.py file %t.write > %t.out
8 # RUN: %{python} %S/check_path.py file %t.write > %t.out
11 # RUN: %{python} %S/check_path.py file %t.write > %t.out
22 # RUN: %{python} %S/check_path.py dir %T/test > %t.out
25 # RUN: %{python} %S/check_path.py dir %T/test > %t.out
29 # RUN: %{python} %S/check_path.py dir %T/test > %t.out
39 # RUN: %{python} %S/check_path.py dir %T/test1 > %t.out
42 # RUN: %{python} %S/check_path.py dir %T/test1 > %t.out
45 # RUN: %{python} %S/check_path.py dir %T/test1 > %t.out
55 # RUN: %{python} %S/check_path.py dir %T/test %T/test/test1 %T/test/test2 > %t.out
[all …]
/llvm-project-15.0.7/mlir/utils/mbr/
H A DREADME.md3 benchmark programs. It uses MLIR's python bindings for MLIR benchmarks.
12 An MBR benchmark is a python function that returns two callables, a compiler
16 ```python
34 must be in the python files prefixed by `"benchmark_` for them to be
49 ```python
65 PYTHONPATH=<path_to_python_mlir_core> <other_env_vars> python <llvm-build-path>/bin/mlir-mbr --mach…
70 python mlir/utils/mbr/mbr/main.py -h
82 …benchmark function name. For example, `mlir/benchmark/python/benchmark_sparse.py::benchmark_sparse…
/llvm-project-15.0.7/clang/test/utils/update_cc_test_checks/
H A Dlit.local.cfg6 # python 2.7 backwards compatibility
28 python = shell_quote(config.python_executable)
31 python, shell_quote(script_path), extra_args)))
36 python, lit, shell_quote(config.clang_lit_site_cfg))))
/llvm-project-15.0.7/mlir/cmake/modules/
H A DMLIRDetectPythonEnv.cmake3 # Finds and configures python packages needed to build MLIR Python bindings.
13 # Prime the search for python to see if there is a full development
31 message(STATUS "Found python include dirs: ${Python3_INCLUDE_DIRS}")
32 message(STATUS "Found python libraries: ${Python3_LIBRARIES}")
42 # Detects a pybind11 package installed in the current python environment
50 message(STATUS "Checking for pybind11 in python path...")
/llvm-project-15.0.7/lldb/third_party/Python/module/pexpect-4.6/
H A D.travis.yml1 language: python
3 python:
15 - python: pypy
/llvm-project-15.0.7/lldb/
H A DCMakeLists.txt44 "Path to python interpreter exectuable, relative to python's install prefix")
46 "Filename extension for native code python modules")
52 ${CMAKE_CURRENT_SOURCE_DIR}/bindings/python/get-python-config.py
114 finish_swig_python("lldb-python" "${lldb_python_bindings_dir}" "${lldb_python_target_dir}")
/llvm-project-15.0.7/clang/bindings/python/tests/
H A DCMakeLists.txt3 add_custom_target(check-clang-python
11 set_target_properties(check-clang-python PROPERTIES FOLDER "Clang tests")
34 # The Python FFI interface is broken on AIX: https://bugs.python.org/issue38628.
49 LLVM_ALL_ADDITIONAL_TEST_TARGETS check-clang-python)

12345678910>>...12