[clang] 97c5381 - [RISCV] Remove 'Z' from Zbb builtin type strings. NFC
Craig Topper via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 18 12:08:05 PDT 2023
Author: Craig Topper
Date: 2023-07-18T12:07:50-07:00
New Revision: 97c5381879d41cafaf36793e57e236da8a81791f
URL: https://github.com/llvm/llvm-project/commit/97c5381879d41cafaf36793e57e236da8a81791f
DIFF: https://github.com/llvm/llvm-project/commit/97c5381879d41cafaf36793e57e236da8a81791f.diff
LOG: [RISCV] Remove 'Z' from Zbb builtin type strings. NFC
'Z' means uint32_t, but 'i' is always 32 bits for RISC-V so
we don't need this.
Added:
Modified:
clang/include/clang/Basic/BuiltinsRISCV.def
Removed:
################################################################################
diff --git a/clang/include/clang/Basic/BuiltinsRISCV.def b/clang/include/clang/Basic/BuiltinsRISCV.def
index d89fcaaed710cd..918087b5ad6f71 100644
--- a/clang/include/clang/Basic/BuiltinsRISCV.def
+++ b/clang/include/clang/Basic/BuiltinsRISCV.def
@@ -16,11 +16,11 @@
#endif
// Zbb extension
-TARGET_BUILTIN(__builtin_riscv_orc_b_32, "UZiUZi", "nc", "zbb")
+TARGET_BUILTIN(__builtin_riscv_orc_b_32, "UiUi", "nc", "zbb")
TARGET_BUILTIN(__builtin_riscv_orc_b_64, "UWiUWi", "nc", "zbb,64bit")
-TARGET_BUILTIN(__builtin_riscv_clz_32, "UiUZi", "nc", "zbb|xtheadbb")
+TARGET_BUILTIN(__builtin_riscv_clz_32, "UiUi", "nc", "zbb|xtheadbb")
TARGET_BUILTIN(__builtin_riscv_clz_64, "UiUWi", "nc", "zbb|xtheadbb,64bit")
-TARGET_BUILTIN(__builtin_riscv_ctz_32, "UiUZi", "nc", "zbb")
+TARGET_BUILTIN(__builtin_riscv_ctz_32, "UiUi", "nc", "zbb")
TARGET_BUILTIN(__builtin_riscv_ctz_64, "UiUWi", "nc", "zbb,64bit")
// Zbc or Zbkc extension
@@ -50,7 +50,7 @@ TARGET_BUILTIN(__builtin_riscv_aes64ds_64, "UWiUWiUWi", "nc", "zknd,64bit")
TARGET_BUILTIN(__builtin_riscv_aes64dsm_64, "UWiUWiUWi", "nc", "zknd,64bit")
TARGET_BUILTIN(__builtin_riscv_aes64im_64, "UWiUWi", "nc", "zknd,64bit")
-// Zknd & zkne
+// Zknd & Zkne
TARGET_BUILTIN(__builtin_riscv_aes64ks1i_64, "UWiUWiIUi", "nc", "zknd|zkne,64bit")
TARGET_BUILTIN(__builtin_riscv_aes64ks2_64, "UWiUWiUWi", "nc", "zknd|zkne,64bit")
More information about the cfe-commits
mailing list