summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'polly/lib/CodeGen')
-rw-r--r--polly/lib/CodeGen/CodeGeneration.cpp7
-rw-r--r--polly/lib/CodeGen/LoopGenerators.cpp3
2 files changed, 6 insertions, 4 deletions
diff --git a/polly/lib/CodeGen/CodeGeneration.cpp b/polly/lib/CodeGen/CodeGeneration.cpp
index 2dc423c0f62..36c39cd070e 100644
--- a/polly/lib/CodeGen/CodeGeneration.cpp
+++ b/polly/lib/CodeGen/CodeGeneration.cpp
@@ -380,7 +380,8 @@ public:
}
IntegerType *ClastStmtCodeGen::getIntPtrTy() {
- return P->getAnalysis<DataLayout>().getIntPtrType(Builder.getContext());
+ return P->getAnalysis<DataLayoutPass>().getDataLayout().getIntPtrType(
+ Builder.getContext());
}
const std::vector<std::string> &ClastStmtCodeGen::getParallelLoops() {
@@ -1054,7 +1055,7 @@ public:
AU.addRequired<ScalarEvolution>();
AU.addRequired<ScopDetection>();
AU.addRequired<ScopInfo>();
- AU.addRequired<DataLayout>();
+ AU.addRequired<DataLayoutPass>();
AU.addRequired<LoopInfo>();
AU.addPreserved<CloogInfo>();
@@ -1086,7 +1087,7 @@ INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass);
INITIALIZE_PASS_DEPENDENCY(RegionInfo);
INITIALIZE_PASS_DEPENDENCY(ScalarEvolution);
INITIALIZE_PASS_DEPENDENCY(ScopDetection);
-INITIALIZE_PASS_DEPENDENCY(DataLayout);
+INITIALIZE_PASS_DEPENDENCY(DataLayoutPass);
INITIALIZE_PASS_END(CodeGeneration, "polly-codegen",
"Polly - Create LLVM-IR from SCoPs", false, false)
diff --git a/polly/lib/CodeGen/LoopGenerators.cpp b/polly/lib/CodeGen/LoopGenerators.cpp
index fcfd916c3e5..8322ab09220 100644
--- a/polly/lib/CodeGen/LoopGenerators.cpp
+++ b/polly/lib/CodeGen/LoopGenerators.cpp
@@ -207,7 +207,8 @@ void OMPGenerator::createCallLoopEndNowait() {
}
IntegerType *OMPGenerator::getIntPtrTy() {
- return P->getAnalysis<DataLayout>().getIntPtrType(Builder.getContext());
+ return P->getAnalysis<DataLayoutPass>().getDataLayout().getIntPtrType(
+ Builder.getContext());
}
Module *OMPGenerator::getModule() {
OpenPOWER on IntegriCloud