This is an archive of the discontinued LLVM Phabricator instance.

[instrprof][NFC] Refactor out the common logic for getProfileKind.
ClosedPublic

Authored by snehasish on Jan 31 2022, 2:35 PM.

Details

Summary

The logic for getProfileKind for RawInstrProfReader and
InstrProfReaderIndex is similar. To avoid duplication, move the logic
from the header to InstrProfReader.cpp and introduce a static method
which implements the common code.

Diff Detail

Event Timeline

snehasish created this revision.Jan 31 2022, 2:35 PM
snehasish requested review of this revision.Jan 31 2022, 2:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2022, 2:35 PM
ellis accepted this revision.Jan 31 2022, 2:49 PM

LGTM

This revision is now accepted and ready to land.Jan 31 2022, 2:49 PM
This revision was landed with ongoing or failed builds.Jan 31 2022, 3:15 PM
This revision was automatically updated to reflect the committed changes.