[clang] [CIR] Initial implementation of lowering CIR to MLIR (PR #127835)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 19 11:21:07 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; }
----------------
andykaylor wrote:
That's reasonable. I frequently find myself wondering which context things are returning (recently it's been the AST context coming up during IR generation).
https://github.com/llvm/llvm-project/pull/127835
More information about the cfe-commits
mailing list