aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/VectorUtils.cpp
diff options
context:
space:
mode:
authorRohit Aggarwal <44664450+rohitaggarwal007@users.noreply.github.com>2024-10-29 15:39:55 +0530
committerGitHub <noreply@github.com>2024-10-29 10:09:55 +0000
commitdfb60bb9193d78d0980193e1ade715cffbb55af8 (patch)
tree11dd31f9f313c7dd68bff757e78dc3d4e18e84ae /llvm/lib/Analysis/VectorUtils.cpp
parent05b6c2e4b933e7a3606899c72067c92b6077287b (diff)
downloadllvm-dfb60bb9193d78d0980193e1ade715cffbb55af8.zip
llvm-dfb60bb9193d78d0980193e1ade715cffbb55af8.tar.gz
llvm-dfb60bb9193d78d0980193e1ade715cffbb55af8.tar.bz2
Adding more vector calls for -fveclib=AMDLIBM (#109662)
AMD has it's own implementation of vector calls. New vector calls are introduced in the library for exp10, log10, sincos and finite asin/acos Please refer [https://github.com/amd/aocl-libm-ose] --------- Co-authored-by: Rohit Aggarwal <Rohit.Aggarwal@amd.com>
Diffstat (limited to 'llvm/lib/Analysis/VectorUtils.cpp')
-rw-r--r--llvm/lib/Analysis/VectorUtils.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/VectorUtils.cpp b/llvm/lib/Analysis/VectorUtils.cpp
index 37c4430..cd5cf04 100644
--- a/llvm/lib/Analysis/VectorUtils.cpp
+++ b/llvm/lib/Analysis/VectorUtils.cpp
@@ -76,6 +76,7 @@ bool llvm::isTriviallyVectorizable(Intrinsic::ID ID) {
case Intrinsic::cosh:
case Intrinsic::tanh:
case Intrinsic::exp:
+ case Intrinsic::exp10:
case Intrinsic::exp2:
case Intrinsic::log:
case Intrinsic::log10: