[Mlir-commits] [mlir] [MLIR][CMake] Add PCH for MLIRIR (PR #213412)

Alexis Engelke llvmlistbot at llvm.org
Sat Aug 1 02:14:38 PDT 2026


================
@@ -305,6 +305,121 @@ function(add_mlir_example_library name)
   endif()
 endfunction()
 
+# Determine whether a target reaches MLIRIR through its link libraries.
+function(_mlir_links_ir name out)
----------------
aengelke wrote:

I'm not too familiar with the MLIR library struture, but why don't these transitive dependencies list MLIRIR as dependency if they use it? Not relying on transitive dependencies seems an easier way than adding complicated CMake logic.

https://github.com/llvm/llvm-project/pull/213412


More information about the Mlir-commits mailing list