[clang] [CIR] Call code gen; create empty cir.func op (PR #113483)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 1 05:55:36 PDT 2024
================
@@ -31,9 +34,14 @@ void CIRGenerator::Initialize(ASTContext &astCtx) {
this->astCtx = &astCtx;
- cgm = std::make_unique<CIRGenModule>(*mlirCtx, astCtx, codeGenOpts, diags);
+ mlirCtx = std::make_unique<mlir::MLIRContext>();
+ mlirCtx->getOrLoadDialect<mlir::cir::CIRDialect>();
----------------
AaronBallman wrote:
I'm surprised to see something that's named `get()` and doesn't actually look at the return value or accept any arguments; what's going on here?
https://github.com/llvm/llvm-project/pull/113483
More information about the cfe-commits
mailing list