ΒΆvoid runWholeProgramDevirtOnIndex(
llvm::ModuleSummaryIndex& Summary,
std::set<GlobalValue::GUID>& ExportedGUIDs,
std::map<ValueInfo,
std::vector<VTableSlotSummary>>&
LocalWPDTargetsMap)
void runWholeProgramDevirtOnIndex(
llvm::ModuleSummaryIndex& Summary,
std::set<GlobalValue::GUID>& ExportedGUIDs,
std::map<ValueInfo,
std::vector<VTableSlotSummary>>&
LocalWPDTargetsMap)
Description
Perform index-based whole program devirtualization on the \p Summary index. Any devirtualized targets used by a type test in another module are added to the \p ExportedGUIDs set. For any local devirtualized targets only used within the defining module, the information necessary for locating the corresponding WPD resolution is recorded for the ValueInfo in case it is exported by cross module importing (in which case the devirtualized target name will need adjustment).
Declared at: llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h:246
Parameters
- llvm::ModuleSummaryIndex& Summary
- std::set<GlobalValue::GUID>& ExportedGUIDs
- std::map<ValueInfo, std::vector<VTableSlotSummary>>& LocalWPDTargetsMap