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

David Olsen via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 1 15:24:09 PDT 2024


================
@@ -53,6 +53,7 @@ class CIRGenerator : public clang::ASTConsumer {
   ~CIRGenerator() override;
   void Initialize(clang::ASTContext &astCtx) override;
   bool HandleTopLevelDecl(clang::DeclGroupRef group) override;
+  mlir::ModuleOp getModule();
----------------
dkolsen-pgi wrote:

Fixed.  I changed `CIRGenerator::getModule()` to be a `const` member function.


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


More information about the cfe-commits mailing list