[Mlir-commits] [clang] [flang] [mlir] [mlir][core] Move `InitAll***` implementation into static library. (PR #150805)
Ivan Butygin
llvmlistbot at llvm.org
Sun Jul 27 14:42:46 PDT 2025
================
@@ -20,3 +20,18 @@ add_subdirectory(Target)
add_subdirectory(Tools)
add_subdirectory(Transforms)
add_subdirectory(ExecutionEngine)
+
+get_property(dialect_libs GLOBAL PROPERTY MLIR_DIALECT_LIBS)
+get_property(conversion_libs GLOBAL PROPERTY MLIR_CONVERSION_LIBS)
+get_property(extension_libs GLOBAL PROPERTY MLIR_EXTENSION_LIBS)
+
+add_mlir_library(MLIRRegisterEverything
+ InitAllDialects.cpp
+ InitAllExtensions.cpp
+ InitAllPasses.cpp
----------------
Hardcode84 wrote:
Done, although, it's not so fine grained in practice, as `MLIRRegisterAllPasses` has to include `${dialect_libs}` too.
https://github.com/llvm/llvm-project/pull/150805
More information about the Mlir-commits
mailing list