[flang-commits] [clang] [flang] [flang][driver] Accelerate complex division when `-ffast-math` is specified (PR #159689)

Tarun Prabhu via flang-commits flang-commits at lists.llvm.org
Tue Sep 23 06:53:30 PDT 2025


================
@@ -294,6 +294,11 @@ std::string complexRangeKindToStr(LangOptions::ComplexRangeKind Range);
 // Render a frontend option corresponding to ComplexRangeKind.
 std::string renderComplexRangeOption(LangOptions::ComplexRangeKind Range);
 
+// Set the complex range and output a warning as needed.
+void setComplexRange(const Driver &D, StringRef &LastOpt,
----------------
tarunprabhu wrote:

Could we have this return values instead of using out parameters? Is it possible to return a pair and destructure it in the caller? If not, the out parameters should be the last non-optional parameters.

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


More information about the flang-commits mailing list