[polly] r259502 - Rename the DataLayout member [NFC]

Johannes Doerfert via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 2 06:15:13 PST 2016


Author: jdoerfert
Date: Tue Feb  2 08:15:13 2016
New Revision: 259502

URL: http://llvm.org/viewvc/llvm-project?rev=259502&view=rev
Log:
Rename the DataLayout member [NFC]

Modified:
    polly/trunk/include/polly/ScopInfo.h
    polly/trunk/lib/Analysis/ScopInfo.cpp

Modified: polly/trunk/include/polly/ScopInfo.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/ScopInfo.h?rev=259502&r1=259501&r2=259502&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Tue Feb  2 08:15:13 2016
@@ -1906,7 +1906,7 @@ class ScopInfo : public RegionPass {
   ScopDetection *SD;
 
   // Target data for element size computing.
-  const DataLayout *TD;
+  const DataLayout *DL;
 
   // DominatorTree to reason about guaranteed execution.
   DominatorTree *DT;

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=259502&r1=259501&r2=259502&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Tue Feb  2 08:15:13 2016
@@ -3764,7 +3764,7 @@ void ScopInfo::buildMemoryAccess(
   Value *Address = Inst.getPointerOperand();
   Value *Val = Inst.getValueOperand();
   Type *SizeType = Val->getType();
-  unsigned Size = TD->getTypeAllocSize(SizeType);
+  unsigned Size = DL->getTypeAllocSize(SizeType);
   enum MemoryAccess::AccessType Type =
       Inst.isLoad() ? MemoryAccess::READ : MemoryAccess::MUST_WRITE;
 
@@ -3851,7 +3851,7 @@ void ScopInfo::buildMemoryAccess(
   // FIXME: Size of the number of bytes of an array element, not the number of
   // elements as probably intended here.
   const SCEV *SizeSCEV =
-      SE->getConstant(TD->getIntPtrType(Inst.getContext()), Size);
+      SE->getConstant(DL->getIntPtrType(Inst.getContext()), Size);
 
   if (!IsAffine && Type == MemoryAccess::MUST_WRITE)
     Type = MemoryAccess::MAY_WRITE;
@@ -4131,7 +4131,7 @@ bool ScopInfo::runOnRegion(Region *R, RG
   SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE();
   LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
   AA = &getAnalysis<AAResultsWrapperPass>().getAAResults();
-  TD = &F->getParent()->getDataLayout();
+  DL = &F->getParent()->getDataLayout();
   DT = &getAnalysis<DominatorTreeWrapperPass>().getDomTree();
   auto &AC = getAnalysis<AssumptionCacheTracker>().getAssumptionCache(*F);
 




More information about the llvm-commits mailing list