|
MLIR 22.0.0git
|
User-level object for accessing dialects with dotted syntax such as: ctx.dialect.std. More...
#include "Bindings/Python/IRModule.h"
Public Member Functions | |
| PyDialects (PyMlirContextRef contextRef) | |
| MlirDialect | getDialectForKey (const std::string &key, bool attrError) |
| Public Member Functions inherited from mlir::python::BaseContextObject | |
| BaseContextObject (PyMlirContextRef ref) | |
| PyMlirContextRef & | getContext () |
| Accesses the context reference. | |
User-level object for accessing dialects with dotted syntax such as: ctx.dialect.std.
Definition at line 448 of file IRModule.h.
|
inline |
Definition at line 450 of file IRModule.h.
References mlir::python::BaseContextObject::BaseContextObject().
| MlirDialect PyDialects::getDialectForKey | ( | const std::string & | key, |
| bool | attrError ) |
Definition at line 900 of file IRCore.cpp.
References mlir::get(), mlir::python::BaseContextObject::getContext(), mlirContextGetOrLoadDialect(), and mlirDialectIsNull().