21 MlirDialectRegistry registry) {
29 unwrap(ctx)->appendDialectRegistry(registry);
MlirDialect mlirDialectHandleLoadDialect(MlirDialectHandle handle, MlirContext ctx)
Loads the dialect associated with the provided dialect handle.
void mlirDialectHandleInsertDialect(MlirDialectHandle handle, MlirDialectRegistry registry)
Inserts the dialect associated with the provided dialect handle into the provided dialect registry.
void mlirDialectHandleRegisterDialect(MlirDialectHandle handle, MlirContext ctx)
Registers the dialect associated with the provided dialect handle.
MlirStringRef mlirDialectHandleGetNamespace(MlirDialectHandle handle)
Returns the namespace associated with the provided dialect handle.
static const MlirDialectRegistrationHooks * unwrap(MlirDialectHandle handle)
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
MlirDiagnostic wrap(mlir::Diagnostic &diagnostic)
Structure of dialect registration hooks.
MlirDialectGetNamespaceHook getNamespaceHook
MlirContextLoadDialectHook loadHook
MlirDialectRegistryInsertDialectHook insertHook
A pointer to a sized fragment of a string, not necessarily null-terminated.