[clang] [CIR] Initial implementation of lowering CIR to MLIR (PR #127835)

David Olsen via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 19 11:39:36 PST 2025


================
@@ -55,6 +55,7 @@ class CIRGenerator : public clang::ASTConsumer {
   void Initialize(clang::ASTContext &astContext) override;
   bool HandleTopLevelDecl(clang::DeclGroupRef group) override;
   mlir::ModuleOp getModule() const;
+  mlir::MLIRContext &getContext() { return *mlirContext; }
----------------
dkolsen-pgi wrote:

A little while back I changed all the variable, parameter, and field names in the ClangIR code to be `astContext` or `mlirContext`, getting rid of all generic `context` or `cxt` names.  I didn't do the same for function names.  But it would be good if those were also changed.


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


More information about the cfe-commits mailing list