[clang] [CLANG] Full support of complex multiplication and division. (PR #81514)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 27 11:40:48 PST 2024
================
@@ -396,7 +396,38 @@ class LangOptionsBase {
IncompleteOnly = 3,
};
- enum ComplexRangeKind { CX_Full, CX_Limited, CX_Fortran, CX_None };
+ /// Controls the various implementations for complex multiplication and
+ // division.
+ enum ComplexRangeKind {
+ /// Implementation of complex division and multiplication using a call to
+ /// runtime library functions(generally the case, but the BE might
+ /// sometimes replace the library call if it knows enough about the
+ /// potential range of the inputs). Overflow and non -finite values are
+ /// handled by the library implementation.
+ CX_Full,
+
+ /// Implementation of complex division offering an improved handling
+ /// for overflow in intermediate calculations with no special handling for
+ /// NaN and infinite and values.
----------------
AaronBallman wrote:
```suggestion
/// NaN and infinite values.
```
https://github.com/llvm/llvm-project/pull/81514
More information about the cfe-commits
mailing list