[flang-commits] [clang] [flang] [flang] Add -fcomplex-arithmetic= option and select complex division algorithm (PR #146641)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Thu Jul 3 07:33:51 PDT 2025


================
@@ -192,6 +192,31 @@ class CodeGenOptions : public CodeGenOptionsBase {
     return getProfileUse() == llvm::driver::ProfileCSIRInstr;
   }
 
+  /// Controls the various implementations for complex division.
----------------
tarunprabhu wrote:

If this is exactly the same as the enum in `clang/Basic/LangOptions`, it could be moved to `llvm/Frontend/Driver/CodeGenOptions.h` and shared between clang and flang. There is precedence for this, most recently, [here](https://github.com/llvm/llvm-project/pull/142892).

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


More information about the flang-commits mailing list