MLIR
20.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. More... | |
User-level object for accessing dialects with dotted syntax such as: ctx.dialect.std.
Definition at line 467 of file IRModule.h.
|
inline |
Definition at line 469 of file IRModule.h.
MlirDialect PyDialects::getDialectForKey | ( | const std::string & | key, |
bool | attrError | ||
) |
Definition at line 1019 of file IRCore.cpp.
References mlir::get(), mlir::python::BaseContextObject::getContext(), mlirContextGetOrLoadDialect(), and mlirDialectIsNull().