diff options
author | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-05-23 10:12:56 +0000 |
---|---|---|
committer | Philip Pfaffe <philip.pfaffe@gmail.com> | 2017-05-23 10:12:56 +0000 |
commit | 2b852e2e42eeb6ccabba66f656deb810bc3474c4 (patch) | |
tree | 0b56e1715a61cd007bfdaaed3febe0987f08e4c4 /polly/lib/CodeGen/CodeGeneration.cpp | |
parent | 3ef36fa222c23988f81f9c8c74848774d71b090b (diff) | |
download | bcm5719-llvm-2b852e2e42eeb6ccabba66f656deb810bc3474c4.tar.gz bcm5719-llvm-2b852e2e42eeb6ccabba66f656deb810bc3474c4.zip |
[Polly][NewPM] Port IslAst to the new ScopPassManager
Summary: This patch ports IslAst to the new PM. The change is mostly straightforward. The only major modification required is making IslAst move-only, to correctly manage the isl resources it owns.
Reviewers: grosser, Meinersbur
Reviewed By: grosser
Subscribers: nemanjai, pollydev, llvm-commits
Tags: #polly
Differential Revision: https://reviews.llvm.org/D33422
llvm-svn: 303622
Diffstat (limited to 'polly/lib/CodeGen/CodeGeneration.cpp')
-rw-r--r-- | polly/lib/CodeGen/CodeGeneration.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp index 3ca44041791..6aa36088e91 100644 --- a/polly/lib/CodeGen/CodeGeneration.cpp +++ b/polly/lib/CodeGen/CodeGeneration.cpp @@ -80,7 +80,7 @@ public: "SCoP ==\n"; S.print(errs()); errs() << "\n== The isl AST ==\n"; - AI->printScop(errs(), S); + AI->print(errs()); errs() << "\n== The invalid function ==\n"; F.print(errs()); }); @@ -167,7 +167,7 @@ public: /// Generate LLVM-IR for the SCoP @p S. bool runOnScop(Scop &S) override { - AI = &getAnalysis<IslAstInfo>(); + AI = &getAnalysis<IslAstInfoWrapperPass>().getAI(); // Check if we created an isl_ast root node, otherwise exit. isl_ast_node *AstRoot = AI->getAst(); @@ -273,7 +273,7 @@ public: /// Register all analyses and transformation required. void getAnalysisUsage(AnalysisUsage &AU) const override { AU.addRequired<DominatorTreeWrapperPass>(); - AU.addRequired<IslAstInfo>(); + AU.addRequired<IslAstInfoWrapperPass>(); AU.addRequired<RegionInfoPass>(); AU.addRequired<ScalarEvolutionWrapperPass>(); AU.addRequired<ScopDetectionWrapperPass>(); @@ -287,7 +287,7 @@ public: AU.addPreserved<LoopInfoWrapperPass>(); AU.addPreserved<DominatorTreeWrapperPass>(); AU.addPreserved<GlobalsAAWrapperPass>(); - AU.addPreserved<IslAstInfo>(); + AU.addPreserved<IslAstInfoWrapperPass>(); AU.addPreserved<ScopDetectionWrapperPass>(); AU.addPreserved<ScalarEvolutionWrapperPass>(); AU.addPreserved<SCEVAAWrapperPass>(); |