This is an archive of the discontinued LLVM Phabricator instance.

[InstrProf][NFC] Move function out of InstrProf.h
ClosedPublic

Authored by ellis on Jan 24 2022, 8:12 PM.

Details

Summary

createIRLevelProfileFlagVar() seems to be only used in
PGOInstrumentation.cpp so we move it to that file. Then it can also
take advantage of directly using options rather than passing them as
arguments.

Diff Detail

Event Timeline

ellis created this revision.Jan 24 2022, 8:12 PM
ellis requested review of this revision.Jan 24 2022, 8:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 24 2022, 8:12 PM
phosek accepted this revision.Jan 28 2022, 12:06 AM

LGTM

This revision is now accepted and ready to land.Jan 28 2022, 12:06 AM
kyulee accepted this revision.Jan 28 2022, 12:11 AM
This revision was landed with ongoing or failed builds.Jan 28 2022, 9:24 AM
This revision was automatically updated to reflect the committed changes.