[PATCH] D118097: [InstrProf][NFC] Move function out of InstrProf.h

Ellis Hoag via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 24 20:12:52 PST 2022


ellis created this revision.
Herald added subscribers: wenlei, hiraditya.
ellis requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

`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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118097

Files:
  llvm/include/llvm/ProfileData/InstrProf.h
  llvm/lib/ProfileData/InstrProf.cpp
  llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118097.402756.patch
Type: text/x-patch
Size: 5930 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220125/fd9a5d0e/attachment.bin>


More information about the llvm-commits mailing list