[PATCH] D112774: [RISCV] Support k-ext clang intrinsics
Craig Topper via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Feb 13 19:25:31 PST 2022
craig.topper added inline comments.
================
Comment at: clang/include/clang/Basic/BuiltinsRISCV.def:80
+// Zknd extension
+TARGET_BUILTIN(__builtin_riscv_aes32dsi, "ZiZiZiUc", "nc", "zknd")
+TARGET_BUILTIN(__builtin_riscv_aes32dsmi, "ZiZiZiUc", "nc", "zknd")
----------------
Uc -> IUc
The I will make the frontend only accept constant arguments.
================
Comment at: clang/include/clang/Basic/BuiltinsRISCV.def:87
+// Zknd & zkne
+TARGET_BUILTIN(__builtin_riscv_aes64ks1i, "WiWiUi", "nc", "zknd|zkne,64bit")
+TARGET_BUILTIN(__builtin_riscv_aes64ks2, "WiWiWi", "nc", "zknd|zkne,64bit")
----------------
Ui -> IUi
================
Comment at: clang/include/clang/Basic/BuiltinsRISCV.def:91
+// Zkne extension
+TARGET_BUILTIN(__builtin_riscv_aes32esi, "ZiZiZiUc", "nc", "zkne")
+TARGET_BUILTIN(__builtin_riscv_aes32esmi, "ZiZiZiUc", "nc", "zkne")
----------------
Uc -> IUc
================
Comment at: clang/include/clang/Basic/BuiltinsRISCV.def:114
+// Zksed extension
+TARGET_BUILTIN(__builtin_riscv_sm4ed, "LiLiLiUc", "nc", "zksed")
+TARGET_BUILTIN(__builtin_riscv_sm4ks, "LiLiLiUc", "nc", "zksed")
----------------
Uc -> IUc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112774/new/
https://reviews.llvm.org/D112774
More information about the cfe-commits
mailing list