[PATCH] D54175: [PGO] context sensitive PGO

Jordan Rupprecht via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 14:54:42 PST 2019


rupprecht added inline comments.


================
Comment at: llvm/trunk/include/llvm/Transforms/Instrumentation/PGOInstrumentation.h:41
+      : CSInstrName(CSInstrName) {}
+  PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM) {
+    createProfileFileNameVar(M, CSInstrName);
----------------
ABataev wrote:
> Seems to me, it breaks the build with the shared libraries. Could you take a look at this?
> lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o: In function `llvm::PGOInstrumentationGenCreateVar::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&)':
> /build/llvm/include/llvm/Transforms/Instrumentation/PGOInstrumentation.h:42: undefined reference to `llvm::createProfileFileNameVar(llvm::Module&, llvm::StringRef)'
> /build/llvm/include/llvm/Transforms/Instrumentation/PGOInstrumentation.h:43: undefined reference to `llvm::createIRLevelProfileFlagVar(llvm::Module&, bool)'
Not OP, but I also hit this. rL355346 should fix it.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D54175/new/

https://reviews.llvm.org/D54175





More information about the llvm-commits mailing list