[PATCH] D128911: Emit table lookup from TargetLowering::expandCTTZ()

Shubham Narlawar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 21 12:48:57 PDT 2022


gsocshubham updated this revision to Diff 446612.
gsocshubham added a comment.

Fixing review comments - Using `APInt` for DeBruijn constant.

I am using `*DeBruijn.getRawData()` to get the integer from the APInt but it does not seem appropriate way. Can anyone suggest me good approach to fetch integer from an APInt? I went through `Constants.h` and found `getRawData()` is the only way to fetch a data pointer which then I have to derefer it.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128911/new/

https://reviews.llvm.org/D128911

Files:
  llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
  llvm/test/CodeGen/RISCV/rv32zbb.ll
  llvm/test/CodeGen/SPARC/cttz.ll
  llvm/test/CodeGen/VE/Scalar/cttz.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128911.446612.patch
Type: text/x-patch
Size: 9801 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220721/0b71d806/attachment.bin>


More information about the llvm-commits mailing list