|
MLIR 23.0.0git
|
Static Public Member Functions | |
| static void | attach (nb::object &target, const std::string &opName, DefaultingPyMlirContext ctx) |
| Attach a new PatternDescriptorOpInterface FallbackModel to the named operation. | |
| static void | bindDerived (ClassTy &cls) |
| Static Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteOpInterface< PyPatternDescriptorOpInterface > | |
| static void | bind (nanobind::module_ &m) |
| Creates the Python bindings for this class in the given module. | |
| static void | bindDerived (ClassTy &cls) |
| Hook for derived classes to add class-specific bindings. | |
Static Public Attributes | |
| static constexpr const char * | pyClassName = "PatternDescriptorOpInterface" |
| static constexpr GetTypeIDFunctionTy | getInterfaceID |
Additional Inherited Members | |
| Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteOpInterface< PyPatternDescriptorOpInterface > | |
| PyConcreteOpInterface (nanobind::object object, DefaultingPyMlirContext context) | |
| Constructs an interface instance from an object that is either an operation or a subclass of OpView. | |
| bool | isStatic () |
| Returns true if this object was constructed from a subclass of OpView rather than from an operation instance. | |
| nanobind::typed< nanobind::object, PyOperation > | getOperationObject () |
| Returns the operation instance from which this object was constructed. | |
| nanobind::typed< nanobind::object, PyOpView > | getOpView () |
| Returns the opview of the operation instance from which this object was constructed. | |
| const std::string & | getOpName () |
| Returns the canonical name of the operation this interface is constructed from. | |
| Protected Types inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteOpInterface< PyPatternDescriptorOpInterface > | |
| using | ClassTy |
| using | GetTypeIDFunctionTy |
Definition at line 256 of file DialectTransform.cpp.
|
inlinestatic |
Attach a new PatternDescriptorOpInterface FallbackModel to the named operation.
The FallbackModel acts as a trampoline for callbacks on the Python class.
Definition at line 269 of file DialectTransform.cpp.
References MlirPatternDescriptorOpInterfaceCallbacks::construct, mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperation::createOpView(), MlirPatternDescriptorOpInterfaceCallbacks::destruct, mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyMlirContext::forContext(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperation::forOperation(), mlir::python::Defaulting< DerivedTy, T >::get(), mlirOperationGetContext(), mlirPatternDescriptorOpInterfaceAttachFallbackModel(), mlirStringRefCreate(), MlirPatternDescriptorOpInterfaceCallbacks::populatePatterns, MlirPatternDescriptorOpInterfaceCallbacks::populatePatternsWithState, target, and MlirPatternDescriptorOpInterfaceCallbacks::userData.
Referenced by bindDerived().
|
inlinestatic |
Definition at line 336 of file DialectTransform.cpp.
References attach(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::classmethod(), and target.
|
staticconstexpr |
Definition at line 263 of file DialectTransform.cpp.
|
staticconstexpr |
Definition at line 262 of file DialectTransform.cpp.