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

Owen Rodley via llvm-commits llvm-commits at lists.llvm.org
Sun May 11 21:04:06 PDT 2025


================
@@ -791,6 +792,7 @@ PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level,
 void PassBuilder::addRequiredLTOPreLinkPasses(ModulePassManager &MPM) {
   MPM.addPass(CanonicalizeAliasesPass());
   MPM.addPass(NameAnonGlobalPass());
+  MPM.addPass(AssignGUIDPass());
----------------
orodley wrote:

I think that just running it once as early as necessary is the way to go. I must admit I'm a bit lost amongst all the pass construction methods -- can you recommend the best place to put it?

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


More information about the llvm-commits mailing list