|
MLIR
22.0.0git
|
#include "mlir/CAPI/Registration.h"Go to the source code of this file.
Functions | |
| static const MlirDialectRegistrationHooks * | unwrap (MlirDialectHandle handle) |
| MlirStringRef | mlirDialectHandleGetNamespace (MlirDialectHandle handle) |
| Returns the namespace associated with the provided dialect handle. More... | |
| void | mlirDialectHandleInsertDialect (MlirDialectHandle handle, MlirDialectRegistry registry) |
| Inserts the dialect associated with the provided dialect handle into the provided dialect registry. More... | |
| void | mlirDialectHandleRegisterDialect (MlirDialectHandle handle, MlirContext ctx) |
| Registers the dialect associated with the provided dialect handle. More... | |
| MlirDialect | mlirDialectHandleLoadDialect (MlirDialectHandle handle, MlirContext ctx) |
| Loads the dialect associated with the provided dialect handle. More... | |
| MlirStringRef mlirDialectHandleGetNamespace | ( | MlirDialectHandle | handle | ) |
Returns the namespace associated with the provided dialect handle.
Definition at line 16 of file DialectHandle.cpp.
References MlirDialectRegistrationHooks::getNamespaceHook, and unwrap().
| void mlirDialectHandleInsertDialect | ( | MlirDialectHandle | handle, |
| MlirDialectRegistry | registry | ||
| ) |
Inserts the dialect associated with the provided dialect handle into the provided dialect registry.
Definition at line 20 of file DialectHandle.cpp.
References MlirDialectRegistrationHooks::insertHook, and unwrap().
Referenced by mlir::ExternalPass::getDependentDialects(), and mlirDialectHandleRegisterDialect().
| MlirDialect mlirDialectHandleLoadDialect | ( | MlirDialectHandle | handle, |
| MlirContext | ctx | ||
| ) |
Loads the dialect associated with the provided dialect handle.
Definition at line 32 of file DialectHandle.cpp.
References MlirDialectRegistrationHooks::loadHook, and unwrap().
| void mlirDialectHandleRegisterDialect | ( | MlirDialectHandle | handle, |
| MlirContext | ctx | ||
| ) |
Registers the dialect associated with the provided dialect handle.
Definition at line 25 of file DialectHandle.cpp.
References mlirDialectHandleInsertDialect(), unwrap(), and wrap().
|
inlinestatic |
Definition at line 12 of file DialectHandle.cpp.
References MlirDialectHandle::ptr.
Referenced by mlirDialectHandleGetNamespace(), mlirDialectHandleInsertDialect(), mlirDialectHandleLoadDialect(), and mlirDialectHandleRegisterDialect().