[polly] r265788 - [ScopInfo] Rename variable to AccType. NFC.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 8 07:35:59 PDT 2016
Author: meinersbur
Date: Fri Apr 8 09:35:59 2016
New Revision: 265788
URL: http://llvm.org/viewvc/llvm-project?rev=265788&view=rev
Log:
[ScopInfo] Rename variable to AccType. NFC.
This avoids a name clash with the type llvm::Type.
Modified:
polly/trunk/lib/Analysis/ScopInfo.cpp
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=265788&r1=265787&r2=265788&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Fri Apr 8 09:35:59 2016
@@ -3985,7 +3985,7 @@ bool ScopInfo::buildAccessMultiDimFixed(
const SCEV *AccessFunction = SE->getSCEVAtScope(Address, L);
const SCEVUnknown *BasePointer =
dyn_cast<SCEVUnknown>(SE->getPointerBase(AccessFunction));
- enum MemoryAccess::AccessType Type =
+ enum MemoryAccess::AccessType AccType =
isa<LoadInst>(Inst) ? MemoryAccess::READ : MemoryAccess::MUST_WRITE;
if (auto *BitCast = dyn_cast<BitCastInst>(Address)) {
@@ -4032,7 +4032,7 @@ bool ScopInfo::buildAccessMultiDimFixed(
SizesSCEV.push_back(SE->getSCEV(
ConstantInt::get(IntegerType::getInt64Ty(BasePtr->getContext()), V)));
- addArrayAccess(Inst, Type, BasePointer->getValue(), ElementType, true,
+ addArrayAccess(Inst, AccType, BasePointer->getValue(), ElementType, true,
Subscripts, SizesSCEV, Val);
return true;
}
@@ -4048,7 +4048,7 @@ bool ScopInfo::buildAccessMultiDimParam(
Value *Val = Inst.getValueOperand();
Type *ElementType = Val->getType();
unsigned ElementSize = DL->getTypeAllocSize(ElementType);
- enum MemoryAccess::AccessType Type =
+ enum MemoryAccess::AccessType AccType =
isa<LoadInst>(Inst) ? MemoryAccess::READ : MemoryAccess::MUST_WRITE;
const SCEV *AccessFunction = SE->getSCEVAtScope(Address, L);
@@ -4077,7 +4077,7 @@ bool ScopInfo::buildAccessMultiDimParam(
if (ElementSize != DelinearizedSize)
scop->invalidate(DELINEARIZATION, Inst->getDebugLoc());
- addArrayAccess(Inst, Type, BasePointer->getValue(), ElementType, true,
+ addArrayAccess(Inst, AccType, BasePointer->getValue(), ElementType, true,
AccItr->second.DelinearizedSubscripts, Sizes, Val);
return true;
}
@@ -4200,7 +4200,7 @@ void ScopInfo::buildAccessSingleDim(
Value *Address = Inst.getPointerOperand();
Value *Val = Inst.getValueOperand();
Type *ElementType = Val->getType();
- enum MemoryAccess::AccessType Type =
+ enum MemoryAccess::AccessType AccType =
isa<LoadInst>(Inst) ? MemoryAccess::READ : MemoryAccess::MUST_WRITE;
const SCEV *AccessFunction = SE->getSCEVAtScope(Address, L);
@@ -4229,10 +4229,10 @@ void ScopInfo::buildAccessSingleDim(
if (!ScopRIL.count(LInst))
IsAffine = false;
- if (!IsAffine && Type == MemoryAccess::MUST_WRITE)
- Type = MemoryAccess::MAY_WRITE;
+ if (!IsAffine && AccType == MemoryAccess::MUST_WRITE)
+ AccType = MemoryAccess::MAY_WRITE;
- addArrayAccess(Inst, Type, BasePointer->getValue(), ElementType, IsAffine,
+ addArrayAccess(Inst, AccType, BasePointer->getValue(), ElementType, IsAffine,
{AccessFunction}, {}, Val);
}
More information about the llvm-commits
mailing list