From 2b852e2e42eeb6ccabba66f656deb810bc3474c4 Mon Sep 17 00:00:00 2001 From: Philip Pfaffe Date: Tue, 23 May 2017 10:12:56 +0000 Subject: [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 --- polly/lib/CodeGen/CodeGeneration.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'polly/lib/CodeGen/CodeGeneration.cpp') 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(); + AI = &getAnalysis().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(); - AU.addRequired(); + AU.addRequired(); AU.addRequired(); AU.addRequired(); AU.addRequired(); @@ -287,7 +287,7 @@ public: AU.addPreserved(); AU.addPreserved(); AU.addPreserved(); - AU.addPreserved(); + AU.addPreserved(); AU.addPreserved(); AU.addPreserved(); AU.addPreserved(); -- cgit v1.2.3