[clang] [flang] [flang][driver] Separate the actions of the `-emit-fir` and `-emit-mlir` options (PR #139857)
Tarun Prabhu via cfe-commits
cfe-commits at lists.llvm.org
Wed May 14 08:28:27 PDT 2025
================
@@ -635,6 +635,49 @@ void CodeGenAction::lowerHLFIRToFIR() {
}
}
+void CodeGenAction::lowerFIRToMLIR() {
+ assert(mlirModule && "The MLIR module has not been generated yet.");
+
+ CompilerInstance &ci = this->getInstance();
+ CompilerInvocation &invoc = ci.getInvocation();
+ const CodeGenOptions &opts = invoc.getCodeGenOpts();
+ const auto &mathOpts = invoc.getLoweringOpts().getMathOptions();
----------------
tarunprabhu wrote:
Could we use a more concrete type instead of `auto` here?
https://github.com/llvm/llvm-project/pull/139857
More information about the cfe-commits
mailing list