[clang] [CIR] Initial implementation of lowering CIR to MLIR (PR #127835)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 19 10:14:51 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; }
----------------
erichkeane wrote:
```suggestion
mlir::MLIRContext &getMLIRContext() { return *mlirContext; }
```
MINOR preference? We have all sorts of `contexts` all over the place that these are incredibly confusing.
https://github.com/llvm/llvm-project/pull/127835
More information about the cfe-commits
mailing list