summaryrefslogtreecommitdiffstats
path: root/llvm/tools/opt/NewPMDriver.h
diff options
context:
space:
mode:
authorTeresa Johnson <tejohnson@google.com>2016-08-12 13:53:02 +0000
committerTeresa Johnson <tejohnson@google.com>2016-08-12 13:53:02 +0000
commitf93b246f8b22137abe69842ab4a99747d95a7f7a (patch)
tree95b3703eb5458c5152ed11937dbd23d24a1f9cd4 /llvm/tools/opt/NewPMDriver.h
parent565bdd9fed999909827d75a4bea27ace05b4445d (diff)
downloadbcm5719-llvm-f93b246f8b22137abe69842ab4a99747d95a7f7a.tar.gz
bcm5719-llvm-f93b246f8b22137abe69842ab4a99747d95a7f7a.zip
[PM] Port ModuleSummaryIndex analysis to new pass manager
Summary: Port the ModuleSummaryAnalysisWrapperPass to the new pass manager. Use it in the ported BitcodeWriterPass (similar to how we use the legacy ModuleSummaryAnalysisWrapperPass in the legacy WriteBitcodePass). Also, pass the -module-summary opt flag through to the new pass manager pipeline and through to the bitcode writer pass, and add a test that uses it. Reviewers: mehdi_amini Subscribers: llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D23439 llvm-svn: 278508
Diffstat (limited to 'llvm/tools/opt/NewPMDriver.h')
-rw-r--r--llvm/tools/opt/NewPMDriver.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/opt/NewPMDriver.h b/llvm/tools/opt/NewPMDriver.h
index 66a470d49ba..5cf2afc53bd 100644
--- a/llvm/tools/opt/NewPMDriver.h
+++ b/llvm/tools/opt/NewPMDriver.h
@@ -52,7 +52,8 @@ bool runPassPipeline(StringRef Arg0, LLVMContext &Context, Module &M,
StringRef PassPipeline, opt_tool::OutputKind OK,
opt_tool::VerifierKind VK,
bool ShouldPreserveAssemblyUseListOrder,
- bool ShouldPreserveBitcodeUseListOrder);
+ bool ShouldPreserveBitcodeUseListOrder,
+ bool EmitSummaryIndex, bool EmitModuleHash);
}
#endif
OpenPOWER on IntegriCloud