[flang-commits] [clang] [flang] [mlir] [flang] Add support for -mrecip[=<list>] (PR #142172)

Cameron McInally via flang-commits flang-commits at lists.llvm.org
Sat May 31 05:30:01 PDT 2025


mcinally wrote:

> LGTM, though, I think we'd better reuse the code from `Clang.cpp`. `flangFrontend` already depends on `clangDriver`, so we just need to export `ParseMRecip` and `getRefinementStep` from `clangDriver` (and probably replace their `Driver` argument with a `DiagnosticEngine` argument, so that it works for both clang and flang).

This seems reasonable. I'll look into whether it's possible to do.

>  (and probably replace their `Driver` argument with a `DiagnosticEngine` argument, so that it works for both clang and flang)

It will be interesting to see if Clang allows us to change this without changing it everywhere. Changing it everywhere seems like a heavy lift.

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


More information about the flang-commits mailing list