[llvm] [LLVM][Intrinsics] Print note if manual name matches default name (PR #164716)
    Durgadoss R via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Oct 23 09:33:16 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, "");
+}
----------------
durga4github wrote:
yes, I meant the whole class. I do agree with your rationale. So, this is LGTM as is.
https://github.com/llvm/llvm-project/pull/164716
    
    
More information about the llvm-commits
mailing list