[llvm] [LLVM][Intrinsics] Print note if manual name matches default name (PR #164716)
    Durgadoss R via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Oct 22 22:20:05 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:
Since this is a generic utility, should we have it in a common place (so that other target-td files can also leverage it)?
https://github.com/llvm/llvm-project/pull/164716
    
    
More information about the llvm-commits
mailing list