diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-21 01:53:35 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-21 01:53:35 +0000 |
| commit | 612886fc8c1374e991b8dd0711ff391d4fbaae79 (patch) | |
| tree | 1d600c49428ad8fce73522e1a34327c9105d6fff /llvm/lib/Transforms/Scalar/Scalarizer.cpp | |
| parent | f6ec74826e492f31a2e92e5ecbc80ac94d1a3c4b (diff) | |
| download | bcm5719-llvm-612886fc8c1374e991b8dd0711ff391d4fbaae79.tar.gz bcm5719-llvm-612886fc8c1374e991b8dd0711ff391d4fbaae79.zip | |
Rename a few more DataLayout variables.
llvm-svn: 201833
Diffstat (limited to 'llvm/lib/Transforms/Scalar/Scalarizer.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/Scalarizer.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Transforms/Scalar/Scalarizer.cpp b/llvm/lib/Transforms/Scalar/Scalarizer.cpp index e614ecee53a..83919cde278 100644 --- a/llvm/lib/Transforms/Scalar/Scalarizer.cpp +++ b/llvm/lib/Transforms/Scalar/Scalarizer.cpp @@ -162,7 +162,7 @@ private: ScatterMap Scattered; GatherList Gathered; unsigned ParallelLoopAccessMDKind; - const DataLayout *TDL; + const DataLayout *DL; }; char Scalarizer::ID = 0; @@ -240,7 +240,7 @@ bool Scalarizer::doInitialization(Module &M) { } bool Scalarizer::runOnFunction(Function &F) { - TDL = getAnalysisIfAvailable<DataLayout>(); + DL = getAnalysisIfAvailable<DataLayout>(); for (Function::iterator BBI = F.begin(), BBE = F.end(); BBI != BBE; ++BBI) { BasicBlock *BB = BBI; for (BasicBlock::iterator II = BB->begin(), IE = BB->end(); II != IE;) { @@ -333,7 +333,7 @@ void Scalarizer::transferMetadata(Instruction *Op, const ValueVector &CV) { // the alignment of the vector, or 0 if the ABI default should be used. bool Scalarizer::getVectorLayout(Type *Ty, unsigned Alignment, VectorLayout &Layout) { - if (!TDL) + if (!DL) return false; // Make sure we're dealing with a vector. @@ -343,15 +343,15 @@ bool Scalarizer::getVectorLayout(Type *Ty, unsigned Alignment, // Check that we're dealing with full-byte elements. Layout.ElemTy = Layout.VecTy->getElementType(); - if (TDL->getTypeSizeInBits(Layout.ElemTy) != - TDL->getTypeStoreSizeInBits(Layout.ElemTy)) + if (DL->getTypeSizeInBits(Layout.ElemTy) != + DL->getTypeStoreSizeInBits(Layout.ElemTy)) return false; if (Alignment) Layout.VecAlign = Alignment; else - Layout.VecAlign = TDL->getABITypeAlignment(Layout.VecTy); - Layout.ElemSize = TDL->getTypeStoreSize(Layout.ElemTy); + Layout.VecAlign = DL->getABITypeAlignment(Layout.VecTy); + Layout.ElemSize = DL->getTypeStoreSize(Layout.ElemTy); return true; } |

