[flang-commits] [flang] [flang] Introducing a method to dynamically and conditionally register dialect interfaces. (PR #80881)

via flang-commits flang-commits at lists.llvm.org
Wed Feb 7 10:02:12 PST 2024


================
@@ -786,6 +786,10 @@ void CodeGenAction::generateLLVMIR() {
   llvm::OptimizationLevel level = mapToLevel(opts);
 
   fir::support::loadDialects(*mlirCtx);
+  mlir::DialectRegistry registry;
+  fir::support::registerNonCodegenDialects(registry);
+  fir::support::addFIRExtensions(registry);
----------------
jeanPerier wrote:

Thanks for the explanation, this makes sense to me, I will do that when adding the ASM interface then.

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


More information about the flang-commits mailing list