[llvm] [NVPTX] Refactor intrinsic definitions with loops and classes to remove redundancy (NFC) (PR #139611)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Mon May 12 17:47:04 PDT 2025
================
@@ -815,12 +810,18 @@ class NVVM_TCGEN05_LDST_ACCESS_SIZE<string Shape, int Num> {
true : llvm_void_ty);
}
+class NVVMBuiltin :
+ ClangBuiltin<!strconcat("__", !substr(NAME, !size("int_")))> {
----------------
Artem-B wrote:
How about just `!subst("int_nvvm_", "__nvvm_", NAME)` ?
https://github.com/llvm/llvm-project/pull/139611
More information about the llvm-commits
mailing list