[llvm-branch-commits] [clang] [flang] [mlir] [mlir][LLVM] Include LLVM dialect partition headers instead of LLVMDialect.h (PR #242307)

Markus Böck via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Nov 17 02:50:53 PST 2026


================
@@ -38,7 +38,7 @@ class GPUModuleOp;
 } // namespace gpu
 
 namespace LLVM {
-class LLVMDialect;
+class CallOp;
----------------
zero9178 wrote:

This is by design. Not every user of this header will use `FunctionCallBuilder::create` and if they do, they themselves should include `LLVMControlFlowOps.h`. Otherwise, every use needs to pay for that include in compile time. 

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


More information about the llvm-branch-commits mailing list