[llvm] Compute GUIDs once and store in metadata (PR #184065)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 7 17:19:21 PST 2026
================
@@ -989,11 +993,15 @@ class ModuleSummaryIndexBitcodeReader : public BitcodeReaderBase {
/// is processed and used to avoid repeated hash lookups.
std::vector<unsigned> StackIdToIndex;
+ /// A list of GUIDs defined by this module. Indexed by ValueID.
+ std::vector<uint64_t> DefinedGUIDs;
+
public:
ModuleSummaryIndexBitcodeReader(
BitstreamCursor Stream, StringRef Strtab, ModuleSummaryIndex &TheIndex,
StringRef ModulePath,
- std::function<bool(GlobalValue::GUID)> IsPrevailing = nullptr);
+ std::function<bool(StringRef)> IsPrevailing = nullptr,
+ std::function<void(ValueInfo)> OnValueInfo = nullptr);
----------------
mtrofin wrote:
may be worth adding a doc comment about the callbacks.
https://github.com/llvm/llvm-project/pull/184065
More information about the llvm-commits
mailing list