Home
last modified time | relevance | path

Searched refs:py (Results 1 – 25 of 9091) sorted by relevance

12345678910>>...364

/llvm-project-15.0.7/lldb/docs/
H A Dpython_api_enums.rst10 .. py:currentmodule:: lldb
134 .. py:data:: eStateInvalid
152 .. py:data:: eStateStopped
156 .. py:data:: eStateRunning
173 .. py:data:: eStateExited
250 .. py:data:: eAllThreads
286 .. py:data:: eFormatBytes
288 .. py:data:: eFormatChar
294 .. py:data:: eFormatEnum
295 .. py:data:: eFormatHex
[all …]
/llvm-project-15.0.7/mlir/include/mlir/Bindings/Python/
H A DPybindAdaptors.h50 static py::object mlirApiObjectToCapsule(py::handle apiObject) {
52 return py::reinterpret_borrow<py::object>(apiObject);
137 py::object capsule = py::reinterpret_steal<py::object>(
277 py::sibling(py::getattr(thisClass, name, py::none())), extra...);
287 py::sibling(py::getattr(thisClass, name, py::none())), extra...);
301 std::forward<Func>(f), py::name(name), py::scope(thisClass),
302 py::sibling(py::getattr(thisClass, name, py::none())), extra...);
314 std::forward<Func>(f), py::name(name), py::scope(thisClass),
315 py::sibling(py::getattr(thisClass, name, py::none())), extra...);
373 py::name("__new__"), py::arg("cls"), py::arg("cast_from_attr"));
[all …]
/llvm-project-15.0.7/mlir/lib/Bindings/Python/
H A DIRCore.cpp2355 .def(py::init<py::object>(), py::arg("descriptor")) in populateIRCore()
2418 py::arg("callee"), py::arg("frames"), py::arg("context") = py::none(), in populateIRCore()
2458 py::arg("name"), py::arg("childLoc") = py::none(), in populateIRCore()
2497 py::arg("asm"), py::arg("context") = py::none(), in populateIRCore()
2673 py::arg("loc") = py::none(), py::arg("ip") = py::none(), in populateIRCore()
2706 .def(py::init<py::object>(), py::arg("operation")) in populateIRCore()
2722 py::arg("operands") = py::none(), py::arg("attributes") = py::none(), in populateIRCore()
2723 py::arg("successors") = py::none(), py::arg("regions") = py::none(), in populateIRCore()
2724 py::arg("loc") = py::none(), py::arg("ip") = py::none(), in populateIRCore()
2960 py::arg("asm"), py::arg("context") = py::none(), in populateIRCore()
[all …]
H A DDialectQuant.cpp13 namespace py = pybind11;
33 py::arg("is_signed"), py::arg("integral_width")); in populateDialectQuantSubmodule()
42 py::arg("is_signed"), py::arg("integral_width")); in populateDialectQuantSubmodule()
171 py::arg("cls"), py::arg("flags"), py::arg("storage_type"), in populateDialectQuantSubmodule()
172 py::arg("expressed_type"), py::arg("storage_type_min"), in populateDialectQuantSubmodule()
193 py::arg("cls"), py::arg("flags"), py::arg("storage_type"), in populateDialectQuantSubmodule()
194 py::arg("expressed_type"), py::arg("scale"), py::arg("zero_point"), in populateDialectQuantSubmodule()
195 py::arg("storage_type_min"), py::arg("storage_type_max")); in populateDialectQuantSubmodule()
234 py::arg("cls"), py::arg("flags"), py::arg("storage_type"), in populateDialectQuantSubmodule()
235 py::arg("expressed_type"), py::arg("scales"), py::arg("zero_points"), in populateDialectQuantSubmodule()
[all …]
H A DIRInterfaces.cpp15 namespace py = pybind11;
66 } catch (py::cast_error &) { in PyConcreteOpInterface()
72 } catch (py::cast_error &) { in PyConcreteOpInterface()
90 throw py::type_error( in PyConcreteOpInterface()
107 cls.def(py::init<py::object, DefaultingPyMlirContext>(), py::arg("object"), in bind()
108 py::arg("context") = py::none(), constructorDoc) in bind()
138 py::object getOpView() { in getOpView()
153 py::object obj;
231 py::arg("operands") = py::none(), in bindDerived()
232 py::arg("attributes") = py::none(), py::arg("regions") = py::none(), in bindDerived()
[all …]
H A DIRTypes.cpp44 py::arg("width"), py::arg("context") = py::none(), in bindDerived()
52 py::arg("width"), py::arg("context") = py::none(), in bindDerived()
60 py::arg("width"), py::arg("context") = py::none(), in bindDerived()
350 py::arg("shape"), py::arg("elementType"), py::arg("loc") = py::none(), in bindDerived()
385 py::arg("shape"), py::arg("element_type"), in bindDerived()
386 py::arg("encoding") = py::none(), py::arg("loc") = py::none(), in bindDerived()
425 py::arg("element_type"), py::arg("loc") = py::none(), in bindDerived()
463 py::arg("layout") = py::none(), py::arg("memory_space") = py::none(), in bindDerived()
552 py::arg("elements"), py::arg("context") = py::none(), in bindDerived()
589 py::arg("inputs"), py::arg("results"), py::arg("context") = py::none(), in bindDerived()
[all …]
H A DDialectPDL.cpp13 namespace py = pybind11;
34 [](py::object cls, MlirContext ctx) { in populateDialectPDLSubmodule()
38 py::arg("context") = py::none()); in populateDialectPDLSubmodule()
48 [](py::object cls, MlirContext ctx) { in populateDialectPDLSubmodule()
52 py::arg("context") = py::none()); in populateDialectPDLSubmodule()
61 [](py::object cls, MlirType elementType) { in populateDialectPDLSubmodule()
66 py::arg("cls"), py::arg("element_type")); in populateDialectPDLSubmodule()
79 [](py::object cls, MlirContext ctx) { in populateDialectPDLSubmodule()
83 py::arg("context") = py::none()); in populateDialectPDLSubmodule()
92 [](py::object cls, MlirContext ctx) { in populateDialectPDLSubmodule()
[all …]
H A DIRAffine.cpp354 return py::reinterpret_steal<py::object>( in getCapsule()
490 return py::reinterpret_steal<py::object>( in getCapsule()
625 py::arg("context") = py::none(), in populateIRAffine()
629 py::arg("context") = py::none(), in populateIRAffine()
711 py::arg("dim_count"), py::arg("symbol_count"), py::arg("exprs"), in populateIRAffine()
721 py::arg("value"), py::arg("context") = py::none(), in populateIRAffine()
737 py::arg("n_dims"), py::arg("context") = py::none(), in populateIRAffine()
762 py::arg("permutation"), py::arg("context") = py::none(), in populateIRAffine()
806 py::arg("expr"), py::arg("replacement"), py::arg("n_result_dims"), in populateIRAffine()
889 py::arg("num_dims"), py::arg("num_symbols"), py::arg("exprs"), in populateIRAffine()
[all …]
H A DIRAttributes.cpp162 py::arg("attributes"), py::arg("context") = py::none(), in bindDerived()
214 py::arg("type"), py::arg("value"), py::arg("loc") = py::none(), in bindDerived()
223 py::arg("value"), py::arg("context") = py::none(), in bindDerived()
232 py::arg("value"), py::arg("context") = py::none(), in bindDerived()
287 py::arg("value"), py::arg("context") = py::none(), in bindDerived()
311 py::arg("value"), py::arg("context") = py::none(), in bindDerived()
341 py::arg("dialect_namespace"), py::arg("buffer"), py::arg("type"), in bindDerived()
374 py::arg("value"), py::arg("context") = py::none(), in bindDerived()
621 py::arg("type") = py::none(), py::arg("shape") = py::none(), in bindDerived()
789 py::arg("value") = py::dict(), py::arg("context") = py::none(), in bindDerived()
[all …]
H A DMainModule.cpp17 namespace py = pybind11;
28 py::class_<PyGlobals>(m, "_Globals", py::module_local()) in PYBIND11_MODULE()
38 py::arg("module_name")) in PYBIND11_MODULE()
40 py::arg("dialect_namespace"), py::arg("dialect_class"), in PYBIND11_MODULE()
43 py::arg("operation_name"), py::arg("operation_class"), in PYBIND11_MODULE()
51 py::cast(new PyGlobals, py::return_value_policy::take_ownership); in PYBIND11_MODULE()
56 [](py::object pyClass) { in PYBIND11_MODULE()
62 py::arg("dialect_class"), in PYBIND11_MODULE()
66 [](py::object dialectClass) -> py::cpp_function { in PYBIND11_MODULE()
68 [dialectClass](py::object opClass) -> py::object { in PYBIND11_MODULE()
[all …]
H A DExecutionEngineModule.cpp12 namespace py = pybind11;
38 return py::reinterpret_steal<py::object>( in getCapsule()
52 throw py::error_already_set(); in createFromCapsule()
53 return py::cast(PyExecutionEngine(rawPm), py::return_value_policy::move); in createFromCapsule()
73 py::class_<PyExecutionEngine>(m, "ExecutionEngine", py::module_local()) in PYBIND11_MODULE()
86 py::arg("module"), py::arg("opt_level") = 2, in PYBIND11_MODULE()
87 py::arg("shared_libs") = py::list(), in PYBIND11_MODULE()
107 py::arg("func_name"), in PYBIND11_MODULE()
112 py::object callbackObj) { in PYBIND11_MODULE()
115 py::cast<uintptr_t>(py::getattr(callbackObj, "value")); in PYBIND11_MODULE()
[all …]
H A DPass.cpp15 namespace py = pybind11;
36 return py::reinterpret_steal<py::object>( in getCapsule()
43 throw py::error_already_set(); in createFromCapsule()
44 return py::cast(PyPassManager(rawPm), py::return_value_policy::move); in createFromCapsule()
54 void mlir::python::populatePassManagerSubmodule(py::module &m) { in populatePassManagerSubmodule()
58 py::class_<PyPassManager>(m, "PassManager", py::module_local()) in populatePassManagerSubmodule()
59 .def(py::init<>([](DefaultingPyMlirContext context) { in populatePassManagerSubmodule()
64 py::arg("context") = py::none(), in populatePassManagerSubmodule()
82 py::arg("enable"), "Enable / disable verify-each.") in populatePassManagerSubmodule()
96 py::arg("pipeline"), py::arg("context") = py::none(), in populatePassManagerSubmodule()
[all …]
H A DDialectSparseTensor.cpp13 namespace py = pybind11;
18 static void populateDialectSparseTensorSubmodule(const py::module &m) { in populateDialectSparseTensorSubmodule()
19 py::enum_<MlirSparseTensorDimLevelType>(m, "DimLevelType", py::module_local()) in populateDialectSparseTensorSubmodule()
28 [](py::object cls, in populateDialectSparseTensorSubmodule()
37 py::arg("cls"), py::arg("dim_level_types"), py::arg("dim_ordering"), in populateDialectSparseTensorSubmodule()
38 py::arg("pointer_bit_width"), py::arg("index_bit_width"), in populateDialectSparseTensorSubmodule()
39 py::arg("context") = py::none(), in populateDialectSparseTensorSubmodule()
H A DIRModule.cpp17 namespace py = pybind11;
42 py::object loaded; in loadDialectModule()
48 loaded = py::module::import(moduleName.c_str()); in loadDialectModule()
49 } catch (py::error_already_set &e) { in loadDialectModule()
64 py::object pyClass) { in registerDialectImpl()
65 py::object &found = dialectClassMap[dialectNamespace]; in registerDialectImpl()
75 py::object pyClass, in registerOperationImpl()
77 py::object &found = operationClassMap[operationName]; in registerOperationImpl()
87 llvm::Optional<py::object>
100 dialectClassMap[dialectNamespace] = py::none(); in lookupDialectClass()
[all …]
/llvm-project-15.0.7/third-party/benchmark/bindings/python/google_benchmark/
H A Dbenchmark.cc17 namespace py = ::pybind11;
82 py::arg("start"), py::arg("limit")) in PYBIND11_MODULE()
84 py::return_value_policy::reference, py::arg("start"), in PYBIND11_MODULE()
85 py::arg("limit"), py::arg("step") = 1) in PYBIND11_MODULE()
93 py::return_value_policy::reference, py::arg("lo1"), py::arg("hi1"), in PYBIND11_MODULE()
94 py::arg("lo2"), py::arg("hi2")) in PYBIND11_MODULE()
103 py::return_value_policy::reference, py::arg("value") = true) in PYBIND11_MODULE()
105 py::return_value_policy::reference, py::arg("value") = true) in PYBIND11_MODULE()
133 .def(py::self | py::self); in PYBIND11_MODULE()
148 py::implicitly_convertible<py::float_, Counter>(); in PYBIND11_MODULE()
[all …]
/llvm-project-15.0.7/polly/lib/External/isl/imath/tests/gmp-compat-test/
H A DMakefile4 runtest: imath_test.so gmp_test.so wrappers.py random.tests
7 gmp_test.c: gmp_custom_test.c genctest.py gmpapi.py
8 ./genctest.py gmp > $@
10 imath_test.c: imath_custom_test.c genctest.py gmpapi.py
11 ./genctest.py imath > $@
19 wrappers.py: genpytest.py gmpapi.py
20 ./genpytest.py > $@
22 random.tests: gendata.py
23 ./gendata.py > $@
26 rm -f a.out *.so *.o gmp_test.c imath_test.c wrappers.py *.pyc
/llvm-project-15.0.7/utils/bazel/llvm-project-overlay/mlir/python/
H A DBUILD.bazel32 "mlir/execution_engine.py",
46 "mlir/ir.py",
68 "mlir/passmanager.py",
82 "mlir/runtime/*.py",
125 "mlir/dialects/builtin.py",
236 "mlir/dialects/arith.py",
363 "mlir/dialects/cf.py",
405 "mlir/dialects/math.py",
541 "mlir/dialects/pdl.py",
644 "mlir/dialects/scf.py",
[all …]
/llvm-project-15.0.7/llvm/utils/gn/secondary/llvm/utils/llvm-lit/
H A DBUILD.gn17 output = "${output}.py"
67 "//clang/test/lit.cfg.py",
71 "//clang/test/Unit/lit.cfg.py",
75 "//lld/test/lit.cfg.py",
79 "//lld/test/Unit/lit.cfg.py",
83 "//lldb/test/lit.cfg.py",
87 "//lldb/test/API/lit.cfg.py",
95 "//lldb/test/Unit/lit.cfg.py",
99 "//llvm/test/lit.cfg.py",
103 "//llvm/test/Unit/lit.cfg.py",
[all …]
/llvm-project-15.0.7/clang/tools/scan-build-py/
H A DCMakeLists.txt13 "__init__.py"
14 "analyze.py"
15 "arguments.py"
16 "clang.py"
17 "compilation.py"
18 "intercept.py"
19 "report.py"
20 "shell.py")
30 "__init__.py"
47 RENAME scan-build-py
[all …]
/llvm-project-15.0.7/mlir/test/python/lib/
H A DPythonTestModule.cpp12 namespace py = pybind11;
26 py::arg("context"), py::arg("load") = true); in PYBIND11_MODULE()
32 [](py::object cls, MlirContext ctx) { in PYBIND11_MODULE()
35 py::arg("cls"), py::arg("context") = py::none()); in PYBIND11_MODULE()
39 [](py::object cls, MlirContext ctx) { in PYBIND11_MODULE()
42 py::arg("cls"), py::arg("context") = py::none()); in PYBIND11_MODULE()
/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
8 # pass.py succeeds but we expect failure
9 # RUN: ! %{python} pass.py
/llvm-project-15.0.7/mlir/python/
H A DCMakeLists.txt20 ir.py
21 passmanager.py
34 execution_engine.py
37 runtime/*.py
70 dialects/builtin.py
87 dialects/cf.py
95 dialects/func.py
158 dialects/arith.py
185 dialects/quant.py
193 dialects/pdl.py
[all …]
/llvm-project-15.0.7/lldb/bindings/python/
H A DCMakeLists.txt3 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lldb.py
23 ${CMAKE_CURRENT_BINARY_DIR}/lldb.py
45 "${LLDB_SOURCE_DIR}/bindings/python/createPythonInit.py"
60 DEPENDS ${lldb_python_bindings_dir}/lldb.py
67 "${lldb_python_target_dir}/../six.py")
72 "${lldb_python_bindings_dir}/lldb.py"
73 "${lldb_python_target_dir}/__init__.py")
86 "${LLDB_SOURCE_DIR}/examples/synthetic/libcxx.py")
93 "${LLDB_SOURCE_DIR}/examples/summaries/synth.py"
102 FILES "${LLDB_SOURCE_DIR}/examples/python/in_call_stack.py"
[all …]
H A Dpython.swig15 * :py:class:`SBTarget`: Represents the target program running under the debugger.
16 * :py:class:`SBProcess`: Represents the process associated with the target program.
17 * :py:class:`SBThread`: Represents a thread of execution. :py:class:`SBProcess` contains SBThreads.
18 * :py:class:`SBFrame`: Represents one of the stack frames associated with a thread. :py:class:`SBTh…
20 * :py:class:`SBSymbolContext`: A container that stores various debugger related info.
23 files. :py:class:`SBTarget` contains SBModule.
25 :py:class:`SBTarget` contains SBBreakpoints.
27 * :py:class:`SBCompileUnit`: Represents a compilation unit, or compiled source file.
29 * :py:class:`SBBlock`: Represents a lexical block. :py:class:`SBFunction` contains SBBlocks.
31 and a source file location. :py:class:`SBCompileUnit` contains SBLineEntry.
[all …]

12345678910>>...364