[Mlir-commits] [mlir] [MLIR][CMake] Add PCH for MLIRIR (PR #213412)
Maksim Levental
llvmlistbot at llvm.org
Sat Aug 1 11:14:22 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)
----------------
makslevental wrote:
What can I say our hygiene isn't fantastic 🤷♂️ - I wouldn't be surprised if there are indeed lots of targets which just assume MLIRIR will be linked in and therefore don't explicitly link. But then again the LLM chased this to increase the number of TUs which can reuse but then concluded there was no gain so maybe these aren't actually true users.
https://github.com/llvm/llvm-project/pull/213412
More information about the Mlir-commits
mailing list