[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
Mon Oct 23 08:33:50 PDT 2023
kmclaughlin added inline comments.
================
Comment at: llvm/include/llvm/IR/Intrinsics.td:2176
+ DefaultAttrsIntrinsic<[llvm_anyint_ty],
+ [llvm_anyvector_ty, llvm_i32_ty],
+ [IntrNoMem, IntrNoSync, IntrWillReturn, ImmArg<ArgIndex<1>>]>;
----------------
craig.topper wrote:
> why i32 instead of i1 like the existing cttz intrinsic?
Hi @craig.topper, I tried adding this argument as an i1, but ran into problems when trying to build the patterns in AArch64SVEInstrInfo.td if I tried to match this type. I tried to find some similar intrinsics but didn't find any with patterns that match an i1, which is why I chose to use an i32 with `timm32_0_1`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159283/new/
https://reviews.llvm.org/D159283
More information about the llvm-commits
mailing list