[PATCH] D159283: Add intrinsic to count trailing zero elements in a vector
Kerry McLaughlin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 08:26:58 PDT 2023
kmclaughlin updated this revision to Diff 557880.
kmclaughlin marked 3 inline comments as done.
kmclaughlin added a comment.
- Changed the second argument of the `@llvm.experimental.cttz.elts` intrinsic to an i1.
- Added an AArch64ISD node, `CTTZ_ELTS`, which is used in when lowering the intrinsic for AArch64 if `shouldExpandCttzElements` returned true.
- Changed the generic lowering to no longer check if the result is 0 and return undef if zero-is-poison is set.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159283/new/
https://reviews.llvm.org/D159283
Files:
llvm/docs/LangRef.rst
llvm/include/llvm/CodeGen/TargetLowering.h
llvm/include/llvm/IR/Intrinsics.td
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.h
llvm/lib/Target/AArch64/AArch64InstrInfo.td
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/test/CodeGen/AArch64/intrinsic-cttz-elts-sve.ll
llvm/test/CodeGen/AArch64/intrinsic-cttz-elts.ll
llvm/test/CodeGen/RISCV/intrinsic-cttz-elts-vscale.ll
llvm/test/CodeGen/RISCV/intrinsic-cttz-elts.ll
llvm/test/CodeGen/X86/intrinsic-cttz-elts.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D159283.557880.patch
Type: text/x-patch
Size: 38969 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20231025/a0f110a4/attachment.bin>
More information about the llvm-commits
mailing list