summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-02-25 19:17:57 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-02-25 19:17:57 +0000
commitc5d1689b45f04f656528985801711f64f6911a15 (patch)
treef840c568ba37ed3c7c4e5083c57400c735dae922 /polly/lib/CodeGen
parent38d77473b0b1267658b09042670dbb77c945a61b (diff)
downloadbcm5719-llvm-c5d1689b45f04f656528985801711f64f6911a15.tar.gz
bcm5719-llvm-c5d1689b45f04f656528985801711f64f6911a15.zip
Update for llvm api change.
llvm-svn: 202183
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