[llvm] [InstCombine] Handle more even/odd math functions (PR #81324)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 9 15:18:43 PST 2024


================
@@ -1837,6 +1837,21 @@ TLI_DEFINE_ENUM_INTERNAL(pow)
 TLI_DEFINE_STRING_INTERNAL("pow")
 TLI_DEFINE_SIG_INTERNAL(Dbl, Dbl, Dbl)
 
+/// double erf(double x);
+TLI_DEFINE_ENUM_INTERNAL(erf)
+TLI_DEFINE_STRING_INTERNAL("erf")
+TLI_DEFINE_SIG_INTERNAL(Dbl, Dbl)
+
+/// float erf(float x);
+TLI_DEFINE_ENUM_INTERNAL(erff)
+TLI_DEFINE_STRING_INTERNAL("erff")
+TLI_DEFINE_SIG_INTERNAL(Flt, Flt)
+
+/// long double cbrtl(long double x);
----------------
dtcxzyw wrote:

```suggestion
/// long double erfl(long double x);
```

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


More information about the llvm-commits mailing list