[polly] r255474 - Rename addScalar(Read|Write)Access to addValue(Read|Write)Access
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 13 14:47:43 PST 2015
Author: meinersbur
Date: Sun Dec 13 16:47:43 2015
New Revision: 255474
URL: http://llvm.org/viewvc/llvm-project?rev=255474&view=rev
Log:
Rename addScalar(Read|Write)Access to addValue(Read|Write)Access
Adapt the method names to the new scheme introduced in r255467.
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=255474&r1=255473&r2=255474&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Sun Dec 13 16:47:43 2015
@@ -1905,9 +1905,9 @@ class ScopInfo : public RegionPass {
/// The access will be created at the @p Value's definition.
///
/// @param Value The value to be written.
- /// @see addScalarReadAccess()
+ /// @see addValueReadAccess()
/// @see ScopArrayInfo::MemoryKind
- void addScalarWriteAccess(Instruction *Value);
+ void addValueWriteAccess(Instruction *Value);
/// @brief Create a MemoryAccess for reloading an llvm::Value.
///
@@ -1915,9 +1915,9 @@ class ScopInfo : public RegionPass {
///
/// @param Value The scalar expected to be loaded.
/// @param User User of the scalar; this is where the access is added.
- /// @see addScalarWriteAccess()
+ /// @see addValueWriteAccess()
/// @see ScopArrayInfo::MemoryKind
- void addScalarReadAccess(Value *Value, Instruction *User);
+ void addValueReadAccess(Value *Value, Instruction *User);
/// @brief Create a MemoryAccess for reloading an llvm::Value.
///
@@ -1929,9 +1929,9 @@ class ScopInfo : public RegionPass {
/// @param User The PHI node referencing @p Value.
/// @param UserBB Incoming block for the incoming @p Value.
/// @see addPHIWriteAccess()
- /// @see addScalarWriteAccess()
+ /// @see addValueWriteAccess()
/// @see ScopArrayInfo::MemoryKind
- void addScalarReadAccess(Value *Value, PHINode *User, BasicBlock *UserBB);
+ void addValueReadAccess(Value *Value, PHINode *User, BasicBlock *UserBB);
/// @brief Create a write MemoryAccess for the incoming block of a phi node.
///
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=255474&r1=255473&r2=255474&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Sun Dec 13 16:47:43 2015
@@ -3542,11 +3542,11 @@ void ScopInfo::buildPHIAccesses(PHINode
// OpBB if the definition is not in OpBB.
if (scop->getStmtForBasicBlock(OpIBB) !=
scop->getStmtForBasicBlock(OpBB)) {
- addScalarReadAccess(OpI, PHI, OpBB);
- addScalarWriteAccess(OpI);
+ addValueReadAccess(OpI, PHI, OpBB);
+ addValueWriteAccess(OpI);
}
} else if (ModelReadOnlyScalars && !isa<Constant>(Op)) {
- addScalarReadAccess(Op, PHI, OpBB);
+ addValueReadAccess(Op, PHI, OpBB);
}
addPHIWriteAccess(PHI, OpBB, Op, IsExitBlock);
@@ -3646,7 +3646,7 @@ bool ScopInfo::buildScalarDependences(In
// Do not build a read access that is not in the current SCoP
// Use the def instruction as base address of the MemoryAccess, so that it
// will become the name of the scalar access in the polyhedral form.
- addScalarReadAccess(Inst, UI);
+ addValueReadAccess(Inst, UI);
}
if (ModelReadOnlyScalars && !isa<PHINode>(Inst)) {
@@ -3661,7 +3661,7 @@ bool ScopInfo::buildScalarDependences(In
if (isa<Constant>(Op))
continue;
- addScalarReadAccess(Op, Inst);
+ addValueReadAccess(Op, Inst);
}
}
@@ -3862,7 +3862,7 @@ void ScopInfo::buildAccessFunctions(Regi
if (buildScalarDependences(Inst, &R, NonAffineSubRegion)) {
if (!isa<StoreInst>(Inst))
- addScalarWriteAccess(Inst);
+ addValueWriteAccess(Inst);
}
}
}
@@ -3912,19 +3912,19 @@ void ScopInfo::addArrayAccess(Instructio
ElemBytes, IsAffine, AccessValue, Subscripts, Sizes,
ScopArrayInfo::MK_Array);
}
-void ScopInfo::addScalarWriteAccess(Instruction *Value) {
+void ScopInfo::addValueWriteAccess(Instruction *Value) {
addMemoryAccess(Value->getParent(), Value, MemoryAccess::MUST_WRITE, Value, 1,
true, Value, ArrayRef<const SCEV *>(),
ArrayRef<const SCEV *>(), ScopArrayInfo::MK_Value);
}
-void ScopInfo::addScalarReadAccess(Value *Value, Instruction *User) {
+void ScopInfo::addValueReadAccess(Value *Value, Instruction *User) {
assert(!isa<PHINode>(User));
addMemoryAccess(User->getParent(), User, MemoryAccess::READ, Value, 1, true,
Value, ArrayRef<const SCEV *>(), ArrayRef<const SCEV *>(),
ScopArrayInfo::MK_Value);
}
-void ScopInfo::addScalarReadAccess(Value *Value, PHINode *User,
- BasicBlock *UserBB) {
+void ScopInfo::addValueReadAccess(Value *Value, PHINode *User,
+ BasicBlock *UserBB) {
addMemoryAccess(UserBB, User, MemoryAccess::READ, Value, 1, true, Value,
ArrayRef<const SCEV *>(), ArrayRef<const SCEV *>(),
ScopArrayInfo::MK_Value);
More information about the llvm-commits
mailing list