static void mlirDialectRegistryInsert##Name##Dialect( \
MlirDialectRegistry registry) { \
unwrap(registry)->insert<ClassName>(); \
} \
static MlirDialect mlirContextLoad##Name##Dialect(MlirContext context) { \
return
wrap(
unwrap(context)->getOrLoadDialect<ClassName>()); \
} \
return
wrap(ClassName::getDialectNamespace()); \
} \
MlirDialectHandle mlirGetDialectHandle__##
Namespace##__() { \
mlirDialectRegistryInsert##Name##Dialect, \
mlirContextLoad##Name##Dialect,
mlir##Name##DialectGetNamespace}; \
}
mlir::Diagnostic & unwrap(MlirDiagnostic diagnostic)
MlirDiagnostic wrap(mlir::Diagnostic &diagnostic)
Include the generated interface declarations.
Structure of dialect registration hooks.
A pointer to a sized fragment of a string, not necessarily null-terminated.