[flang-commits] [flang] [flang] Define ERF, ERFC and ERFC_SCALED intrinsics with Q and D prefix (PR #125217)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Tue Mar 18 10:20:05 PDT 2025
================
@@ -434,6 +435,9 @@ static const IntrinsicInterface genericIntrinsicFunction[]{
{"shift", AnyInt, Rank::dimRemovedOrScalar}, OptionalDIM},
SameType, Rank::conformable, IntrinsicClass::transformationalFunction},
{"dble", {{"a", AnyNumeric, Rank::elementalOrBOZ}}, DoublePrecision},
+ {"derf", {{"x", DoublePrecision}}, DoublePrecision},
----------------
klausler wrote:
Your new functions are not generic intrinsic functions and do not belong in the generic intrinsic function table. Use the specific intrinsic function table (`specificIntrinsicFunction`) below to define these cases as special cases of `ERF`, &c.
https://github.com/llvm/llvm-project/pull/125217
More information about the flang-commits
mailing list