[llvm-branch-commits] [clang] [flang] [mlir] [mlir][LLVM] Include LLVM dialect partition headers instead of LLVMDialect.h (PR #242307)
Eugene Epshteyn via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Nov 15 13:36:13 PST 2026
================
@@ -54,6 +54,9 @@ inline llvm::raw_ostream &operator<<(llvm::raw_ostream &os,
#include "mlir/Dialect/LLVMIR/BasicPtxBuilderInterface.h.inc"
namespace mlir {
+namespace LLVM {
+class InlineAsmOp;
----------------
eugeneepshteyn wrote:
(This comment was generated with the help of AI)
Same as the `CallOp` forward declaration in `GPUCommonPass.h`: with only this header included, `void f(mlir::NVVM::PtxBuilder &b) { b.build(); }` now fails with `calling 'build' with incomplete return type 'LLVM::InlineAsmOp'`, and compiles again once `LLVMControlFlowOps.h` is included.
https://github.com/llvm/llvm-project/pull/242307
More information about the llvm-branch-commits
mailing list