[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)

David Olsen via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 31 14:32:37 PDT 2024


================
@@ -10,4 +10,57 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include <clang/CIR/Dialect/IR/CIRDialect.h>
+#include "clang/CIR/Dialect/IR/CIRDialect.h"
+
+#include "mlir/Support/LogicalResult.h"
+
+#include "clang/CIR/Dialect/IR/CIROpsDialect.cpp.inc"
----------------
dkolsen-pgi wrote:

The TableGen'erated file doesn't have its own includes.  So it needs to be last, to rely on the includes of the main `.cpp` file.  The TableGen file is not a regular header and shouldn't be lumped in with the guidelines for the other headers.


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


More information about the cfe-commits mailing list