[llvm] Store GUIDs in metadata (PR #133682)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 28 10:34:46 PDT 2025


================
@@ -78,6 +78,46 @@ GlobalValue::getGUIDAssumingExternalLinkage(StringRef GlobalIdentifier) {
   return MD5Hash(GlobalIdentifier);
 }
 
+void GlobalValue::assignGUID() {
----------------
mtrofin wrote:

does this need to be on `GlobalValue`? It can just be a detail of the implementation of `AssignGUIDPass`, and then there's no confusion on the user side about whether it's something they should call or not.

https://github.com/llvm/llvm-project/pull/133682


More information about the llvm-commits mailing list