[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 11:35:03 PDT 2024


================
@@ -52,10 +62,33 @@ class CIRGenModule : public CIRGenTypeCache {
   /// A "module" matches a c/cpp source file: containing a list of functions.
   mlir::ModuleOp theModule;
 
+  clang::DiagnosticsEngine &diags;
+
   const clang::TargetInfo ⌖
 
 public:
+  mlir::ModuleOp getModule() const { return theModule; }
+
+  /// Helpers to convert Clang's SourceLocation to an MLIR Location.
----------------
dkolsen-pgi wrote:

I am not familiar with the complexities of Clang's source locations, so I don't know what to document.  I am open to suggestions about what to put here.


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


More information about the cfe-commits mailing list