[flang-commits] [flang] [flang][acc] Implement type categorization for FIR types (PR #126964)

Razvan Lupusoru via flang-commits flang-commits at lists.llvm.org
Wed Feb 12 14:07:34 PST 2025


================
@@ -261,12 +261,13 @@ bool CodeGenAction::beginSourceFileAction() {
   }
 
   // Load the MLIR dialects required by Flang
-  mlir::DialectRegistry registry;
-  mlirCtx = std::make_unique<mlir::MLIRContext>(registry);
-  fir::support::registerNonCodegenDialects(registry);
----------------
razvanlupusoru wrote:

I removed it because the call below `loadDialects` includes that logic. Namely, `loadDialects`, calls `registerDialects`, which calls `registerNonCodegenDialects`.

I can also remove line below which calls `loadNonCodegenDialects` since call to `loadDialects` calls `loadDialect<FLANG_DIALECT_LIST>` which includes the NonCodegenDialects.


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


More information about the flang-commits mailing list