[PATCH] D67920: [PGO] Refactor Value Profiling into a plugin based oracle and create a well defined API for the plugins.

wael yehia via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 23 08:39:03 PDT 2019


w2yehia created this revision.
w2yehia added reviewers: xur, tejohnson.
Herald added subscribers: llvm-commits, hiraditya, mgorny.
Herald added a project: LLVM.

This PR creates a utility class called ValueProfileOracle that tells PGOInstrumentationGen and PGOInstrumentationUse what to value-profile and where to attach the profile metadata.
It then refactors logic scattered in PGOInstrumentation.cpp into two plugins that plug into the ValueProfileOracle.


Repository:
  rL LLVM

https://reviews.llvm.org/D67920

Files:
  llvm/lib/Transforms/Instrumentation/CMakeLists.txt
  llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  llvm/lib/Transforms/Instrumentation/ValueProfileOracle.cpp
  llvm/lib/Transforms/Instrumentation/ValueProfileOracle.h
  llvm/lib/Transforms/Instrumentation/ValueProfilePlugins.inc

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67920.221336.patch
Type: text/x-patch
Size: 19518 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190923/d8f8bb58/attachment.bin>


More information about the llvm-commits mailing list