[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)
Bruno Cardoso Lopes via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 28 15:10:55 PST 2025
================
@@ -55,6 +55,9 @@ class CIRGenerator : public clang::ASTConsumer {
void Initialize(clang::ASTContext &astContext) override;
bool HandleTopLevelDecl(clang::DeclGroupRef group) override;
mlir::ModuleOp getModule() const;
+ std::unique_ptr<mlir::MLIRContext> takeContext() {
----------------
bcardosolopes wrote:
I thinks dates back to early prototypes for CIR and clang-tidy integration, but seems like the final version doesn't need it either, see `clang-tools-extra/clang-tidy/cir/Lifetime.cpp`. Should be fine to get rid of it.
https://github.com/llvm/llvm-project/pull/124650
More information about the cfe-commits
mailing list