[polly] r219294 - [Refactor] Rename MemoryAccess::Type as it clashes with llvm::Type
Johannes Doerfert
doerfert at cs.uni-saarland.de
Wed Oct 8 03:11:33 PDT 2014
Author: jdoerfert
Date: Wed Oct 8 05:11:33 2014
New Revision: 219294
URL: http://llvm.org/viewvc/llvm-project?rev=219294&view=rev
Log:
[Refactor] Rename MemoryAccess::Type as it clashes with llvm::Type
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=219294&r1=219293&r2=219294&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Wed Oct 8 05:11:33 2014
@@ -165,7 +165,7 @@ private:
const MemoryAccess &operator=(const MemoryAccess &) LLVM_DELETED_FUNCTION;
isl_map *AccessRelation;
- enum AccessType Type;
+ enum AccessType AccType;
/// @brief The base address (e.g., A for A[i+j]).
Value *BaseAddr;
@@ -221,19 +221,19 @@ public:
~MemoryAccess();
/// @brief Get the type of a memory access.
- enum AccessType getType() { return Type; }
+ enum AccessType getType() { return AccType; }
/// @brief Is this a reduction like access?
bool isReductionLike() const { return RedType != RT_NONE; }
/// @brief Is this a read memory access?
- bool isRead() const { return Type == MemoryAccess::READ; }
+ bool isRead() const { return AccType == MemoryAccess::READ; }
/// @brief Is this a must-write memory access?
- bool isMustWrite() const { return Type == MemoryAccess::MUST_WRITE; }
+ bool isMustWrite() const { return AccType == MemoryAccess::MUST_WRITE; }
/// @brief Is this a may-write memory access?
- bool isMayWrite() const { return Type == MemoryAccess::MAY_WRITE; }
+ bool isMayWrite() const { return AccType == MemoryAccess::MAY_WRITE; }
/// @brief Is this a write memory access?
bool isWrite() const { return isMustWrite() || isMayWrite(); }
Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=219294&r1=219293&r2=219294&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Wed Oct 8 05:11:33 2014
@@ -479,7 +479,7 @@ void MemoryAccess::assumeNoOutOfBound(co
MemoryAccess::MemoryAccess(const IRAccess &Access, Instruction *AccInst,
ScopStmt *Statement, const ScopArrayInfo *SAI)
- : Type(getMemoryAccessType(Access)), Statement(Statement), Inst(AccInst),
+ : AccType(getMemoryAccessType(Access)), Statement(Statement), Inst(AccInst),
newAccessRelation(nullptr) {
isl_ctx *Ctx = Statement->getIslCtx();
@@ -553,7 +553,7 @@ raw_ostream &polly::operator<<(raw_ostre
}
void MemoryAccess::print(raw_ostream &OS) const {
- switch (Type) {
+ switch (AccType) {
case READ:
OS.indent(12) << "ReadAccess :=\t";
break;
More information about the llvm-commits
mailing list