This is an archive of the discontinued LLVM Phabricator instance.

Bitcode: Introduce BitcodeModule::{has,get}Summary().
ClosedPublic

Authored by pcc on Nov 29 2016, 4:49 PM.

Details

Summary

These are equivalent to hasGlobalValueSummary() and getModuleSummaryIndex().

Depends on D27241

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 79675.Nov 29 2016, 4:49 PM
pcc retitled this revision from to Bitcode: Introduce BitcodeModule::{has,get}Summary()..
pcc updated this object.
pcc added a reviewer: mehdi_amini.
pcc added a subscriber: llvm-commits.
mehdi_amini accepted this revision.Nov 30 2016, 8:48 PM
mehdi_amini edited edge metadata.

LGTM.

llvm/lib/Bitcode/Reader/BitcodeReader.cpp
6100 ↗(On Diff #79675)

If TheIndex is no longer optional, we should make it a reference.

This revision is now accepted and ready to land.Nov 30 2016, 8:48 PM
pcc added inline comments.Nov 30 2016, 9:13 PM
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
6100 ↗(On Diff #79675)

Sure, I'll do that in a followup commit as it's a rather churny non-functional change.

mehdi_amini added inline comments.Nov 30 2016, 9:15 PM
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
6100 ↗(On Diff #79675)

Yes looks better split, thanks.

This revision was automatically updated to reflect the committed changes.