[PATCH] D153235: [RISCV] Change the type of argument to clz and ctz from ZiZi/WiWi to iUi/iULi
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 19 12:58:04 PDT 2023
craig.topper added inline comments.
================
Comment at: clang/include/clang/Basic/BuiltinsRISCV.def:22
+TARGET_BUILTIN(__builtin_riscv_clz_32, "iUi", "nc", "zbb|xtheadbb")
+TARGET_BUILTIN(__builtin_riscv_clz_64, "iULi", "nc", "zbb|xtheadbb,64bit")
+TARGET_BUILTIN(__builtin_riscv_ctz_32, "iUi", "nc", "zbb")
----------------
I'd prefer we use `UWi` instead of `ULi`. If we ever implement ilp32 on RV64, long will not be xlen bits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153235/new/
https://reviews.llvm.org/D153235
More information about the cfe-commits
mailing list