[PATCH] D146905: [IR] Add llvm.tan.* intrinsic
Jun Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 26 03:04:40 PDT 2023
junaire created this revision.
junaire added a reviewer: RKSimon.
Herald added subscribers: jdoerfert, pengfei, hiraditya.
Herald added a project: All.
junaire requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch adds llvm.tan.* intrinsic and corresponding DAG nodes support
for X86 target.
The motivation of the patch is that even if it's uncommon to see tan in
real code, but it will make things a lot easier to do optimizations and
folds if we could have uniformity of trig intrinsics.
Related issue: https://github.com/llvm/llvm-project/issues/34950
Signed-off-by: Jun Zhang <jun at junz.org>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D146905
Files:
llvm/docs/LangRef.rst
llvm/include/llvm/CodeGen/ISDOpcodes.h
llvm/include/llvm/IR/Intrinsics.td
llvm/include/llvm/IR/RuntimeLibcalls.def
llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/llvm.tan.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146905.508393.patch
Type: text/x-patch
Size: 15776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230326/8f30fe79/attachment.bin>
More information about the llvm-commits
mailing list