[llvm] [LLVM][Intrinsics] Print note if manual name matches default name (PR #164716)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 23 09:26:24 PDT 2025


================
@@ -533,26 +533,34 @@ class MMA_SP_NAME<string Metadata, string Kind, int Satfinite,
                   # signature;
 }
 
+class IntrinsicName<string name> {
+  string record = !subst(".", "_",
+                  !subst("llvm.", "int_", name));
+  // Use explicit intrinsic name if it has an _ in it, else rely on LLVM
+  // assigned default name.
+  string intr = !if(!ne(!find(name, "_"), -1), name, "");
+}
----------------
jurahul wrote:

You mean the whole `IntrinsicName` class. I am not sure, since only NVVM is using it currently this way (building record names and intrinsic names programmatically). I suggest we start here and if other downstream backends see a utility, it can be moved to Intrinsics.td

https://github.com/llvm/llvm-project/pull/164716


More information about the llvm-commits mailing list