[PATCH] D53927: [AArch64] Enable trigonometry libm vectorized functions via SLEEF
Stefan Teleman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 31 04:00:47 PDT 2018
steleman created this revision.
steleman added a reviewer: joel_k_jones.
Herald added subscribers: llvm-commits, kristof.beyls, javed.absar.
This changeset is modeled after Intel's submission for SVML. It enables trigonometry functions vectorization via SLEEF: http://sleef.org/.
- A new vectorization library enum is added to TargetLibraryInfo.h: SLEEF.
- A new option is added to TargetLibraryInfoImpl - ClVectorLibrary: SLEEF.
- A comprehensive test case is included in this changeset.
- In a separate changeset (for clang), a new vectorization library argument is added to -fveclib: -fveclib=SLEEF.
Trigonometry functions that are vectorized by sleef:
acos
asin
atan
atanh
cos
cosh
exp
exp2
exp10
lgamma
log10
log2
log
sin
sinh
sqrt
tan
tanh
tgamma
Repository:
rL LLVM
https://reviews.llvm.org/D53927
Files:
include/llvm/Analysis/TargetLibraryInfo.h
include/llvm/IR/Intrinsics.td
lib/Analysis/TargetLibraryInfo.cpp
test/Transforms/LoopVectorize/AArch64/sleef-calls-aarch64.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53927.171886.patch
Type: text/x-patch
Size: 40023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181031/7e1a5565/attachment.bin>
More information about the llvm-commits
mailing list