|
MLIR 23.0.0git
|
Wrapper around the ConditionallySpeculatable interface. More...
Static Public Member Functions | |
| static void | attach (nb::object &target, const std::string &opName, DefaultingPyMlirContext ctx) |
| Attach a new ConditionallySpeculatable FallbackModel to the named operation. | |
| static void | bindDerived (ClassTy &cls) |
| Static Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteOpInterface< PyConditionallySpeculatableOpInterface > | |
| 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 = "ConditionallySpeculatable" |
| static constexpr GetTypeIDFunctionTy | getInterfaceID |
Additional Inherited Members | |
| Public Member Functions inherited from mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteOpInterface< PyConditionallySpeculatableOpInterface > | |
| 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< PyConditionallySpeculatableOpInterface > | |
| using | ClassTy |
| using | GetTypeIDFunctionTy |
Wrapper around the ConditionallySpeculatable interface.
Definition at line 342 of file IRInterfaces.cpp.
|
inlinestatic |
Attach a new ConditionallySpeculatable FallbackModel to the named operation.
The FallbackModel acts as a trampoline for callbacks on the Python class.
Definition at line 355 of file IRInterfaces.cpp.
References MlirConditionallySpeculatableOpInterfaceCallbacks::construct, mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperation::createOpView(), MlirConditionallySpeculatableOpInterfaceCallbacks::destruct, mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyMlirContext::forContext(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyOperation::forOperation(), mlir::python::Defaulting< DerivedTy, T >::get(), MlirConditionallySpeculatableOpInterfaceCallbacks::getSpeculatability, mlirConditionallySpeculatableOpInterfaceAttachFallbackModel(), mlirOperationGetContext(), mlirStringRefCreate(), target, and MlirConditionallySpeculatableOpInterfaceCallbacks::userData.
Referenced by bindDerived().
|
inlinestatic |
Definition at line 382 of file IRInterfaces.cpp.
References attach(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::classmethod(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteOpInterface< ConcreteIface >::getOperationObject(), mlir::python::MLIR_BINDINGS_PYTHON_DOMAIN::PyConcreteOpInterface< ConcreteIface >::isStatic(), mlirConditionallySpeculatableOpInterfaceGetSpeculatability(), and target.
|
staticconstexpr |
Definition at line 349 of file IRInterfaces.cpp.
|
staticconstexpr |
Definition at line 348 of file IRInterfaces.cpp.