[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:27:31 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:
Makes sense, I tried to preserve the names currently used, but I agree.
https://github.com/llvm/llvm-project/pull/164716
    
    
More information about the llvm-commits
mailing list