This is an archive of the discontinued LLVM Phabricator instance.

[instrprof][NFC] Templatize the instrprof iterator.
ClosedPublic

Authored by snehasish on Jan 6 2022, 5:42 PM.

Details

Summary

This change templatizes the InstrProfIterator where the default
specialization is based on the current usage, i.e. the reader_type is
InstrProfReader and the record_type (value_type) is
NamedInstrProfRecord. A subsequent patch will use the same iterator
template to implement an iterator for the RawMemProfReader.

Diff Detail

Event Timeline

snehasish created this revision.Jan 6 2022, 5:42 PM
snehasish requested review of this revision.Jan 6 2022, 5:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 6 2022, 5:42 PM
davidxl accepted this revision.Jan 6 2022, 8:19 PM

lgtm

This revision is now accepted and ready to land.Jan 6 2022, 8:19 PM
This revision was automatically updated to reflect the committed changes.