File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,15 @@ if(GC_DEV_LINK_LLVM_DYLIB)
26
26
)
27
27
get_property (dialect_libs GLOBAL PROPERTY GC_DIALECT_LIBS )
28
28
get_property (conversion_libs GLOBAL PROPERTY GC_PASS_LIBS )
29
+ get_property (extension_libs GLOBAL PROPERTY GC_EXTENSION_LIBS )
29
30
else ()
30
31
set (MLIR_LINK_COMPONENTS
31
32
MLIROptLib
33
+ MLIRToLLVMIRTranslationRegistration
32
34
)
33
35
get_property (dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS )
34
36
get_property (conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS )
37
+ get_property (extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS )
35
38
endif ()
36
39
37
40
add_llvm_executable (gc-opt gc-opt.cpp )
Original file line number Diff line number Diff line change @@ -67,7 +67,11 @@ int main(int argc, char *argv[]) {
67
67
registry.insert <mlir::microkernel::MicrokernelDialect>();
68
68
registry.insert <mlir::gen::GENDialect>();
69
69
mlir::registerAllDialects (registry);
70
+ // covers lowerings for weird dialects like ub
71
+ // TODO: avoid `registerALL` to remove this
70
72
mlir::registerAllExtensions (registry);
73
+ // Adds missing `LLVMTranslationDialectInterface` registration for dialect for
74
+ // gpu.module op
71
75
mlir::registerAllToLLVMIRTranslations (registry);
72
76
mlir::gen::registerGenTargetInterfaceExternalModels (registry);
73
77
mlir::registerGENDialectTranslation (registry);
You can’t perform that action at this time.
0 commit comments