[llvm] [StableHash] Implement stable global name for the hash computation (PR #106156)
Kyungwoo Lee via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 27 13:55:16 PDT 2024
================
@@ -50,6 +50,22 @@ inline stable_hash stable_hash_combine(stable_hash A, stable_hash B,
return stable_hash_combine(Hashes);
}
+// Removes suffixes introduced by LLVM from the name to enhance stability and
+// maintain closeness to the original name across different builds.
+inline StringRef get_stable_name(StringRef Name) {
----------------
kyulee-com wrote:
I prefer to keep this function separate instead of being directly inlined into the `stable_hash_name` below in place, as I plan to extend it further for global outlining or merging.
https://github.com/llvm/llvm-project/pull/106156
More information about the llvm-commits
mailing list