diff options
author | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-05-12 14:37:29 +0000 |
---|---|---|
committer | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-05-12 14:37:29 +0000 |
commit | 5cc87e3ab3912a601fa33c7019f4284d141cee19 (patch) | |
tree | 16e10fe8c44adcccf5889990d4b7b9cbc2331270 /polly/lib/CodeGen/CodeGeneration.cpp | |
parent | b0fdf57543253fec07a9d315b3cea71e87b513ba (diff) | |
download | bcm5719-llvm-5cc87e3ab3912a601fa33c7019f4284d141cee19.tar.gz bcm5719-llvm-5cc87e3ab3912a601fa33c7019f4284d141cee19.zip |
[Polly][NewPM] Port ScopDetection to the new PassManager
Summary: This is a proof of concept of how to port polly-passes to the new PassManager architecture. This approach works ootb for Function-Passes, but might not be directly applicable to Scop/Region-Passes. While we could just run the Analyses/Transforms over functions instead, we'd surrender the nice pipelining behaviour we have now.
Reviewers: Meinersbur, grosser
Reviewed By: grosser
Subscribers: pollydev, sanjoy, nemanjai, llvm-commits
Tags: #polly
Differential Revision: https://reviews.llvm.org/D31459
llvm-svn: 302902
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/CodeGeneration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 528aa48ce32..3ca44041791 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -276,7 +276,7 @@ public: AU.addRequired<IslAstInfo>(); AU.addRequired<RegionInfoPass>(); AU.addRequired<ScalarEvolutionWrapperPass>(); - AU.addRequired<ScopDetection>(); + AU.addRequired<ScopDetectionWrapperPass>(); AU.addRequired<ScopInfoRegionPass>(); AU.addRequired<LoopInfoWrapperPass>(); @@ -288,7 +288,7 @@ public: AU.addPreserved<DominatorTreeWrapperPass>(); AU.addPreserved<GlobalsAAWrapperPass>(); AU.addPreserved<IslAstInfo>(); - AU.addPreserved<ScopDetection>(); + AU.addPreserved<ScopDetectionWrapperPass>(); AU.addPreserved<ScalarEvolutionWrapperPass>(); AU.addPreserved<SCEVAAWrapperPass>(); @@ -311,6 +311,6 @@ INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass); INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass); INITIALIZE_PASS_DEPENDENCY(RegionInfoPass); INITIALIZE_PASS_DEPENDENCY(ScalarEvolutionWrapperPass); -INITIALIZE_PASS_DEPENDENCY(ScopDetection); +INITIALIZE_PASS_DEPENDENCY(ScopDetectionWrapperPass); INITIALIZE_PASS_END(CodeGeneration, "polly-codegen", "Polly - Create LLVM-IR from SCoPs", false, false) |