[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:26:39 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:
Can we name this variable more explicitly, `intr_name` or `intr_str` or something like that?
(mainly, to differentiate it from the output of a `cast<Intrinsic>`)
https://github.com/llvm/llvm-project/pull/164716
More information about the llvm-commits
mailing list