summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--polly/include/polly/ScopInfo.h8
-rw-r--r--polly/lib/Analysis/ScopInfo.cpp2
2 files changed, 6 insertions, 4 deletions
diff --git a/polly/include/polly/ScopInfo.h b/polly/include/polly/ScopInfo.h
index 7372dc2c475..bf8ecef19cb 100644
--- a/polly/include/polly/ScopInfo.h
+++ b/polly/include/polly/ScopInfo.h
@@ -136,7 +136,8 @@ private:
/// could allow us to handle the above example.
ReductionType RedType = RT_NONE;
- const Instruction *Inst;
+ /// @brief The access instruction of this memory access.
+ Instruction *Inst;
/// Updated access relation read from JSCOP file.
isl_map *newAccessRelation;
@@ -149,7 +150,7 @@ public:
/// @param Access The memory access.
/// @param Statement The statement that contains the access.
/// @param SE The ScalarEvolution analysis.
- MemoryAccess(const IRAccess &Access, const Instruction *AccInst,
+ MemoryAccess(const IRAccess &Access, Instruction *AccInst,
ScopStmt *Statement);
~MemoryAccess();
@@ -194,7 +195,8 @@ public:
const std::string &getBaseName() const { return BaseName; }
- const Instruction *getAccessInstruction() const { return Inst; }
+ /// @brief Return the access instruction of this memory access.
+ Instruction *getAccessInstruction() const { return Inst; }
/// @brief Get the new access function imported from JSCOP file
isl_map *getNewAccessRelation() const;
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index 1382c1d37ac..963aa80bdd5 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -414,7 +414,7 @@ void MemoryAccess::assumeNoOutOfBound(const IRAccess &Access) {
isl_space_free(Space);
}
-MemoryAccess::MemoryAccess(const IRAccess &Access, const Instruction *AccInst,
+MemoryAccess::MemoryAccess(const IRAccess &Access, Instruction *AccInst,
ScopStmt *Statement)
: Statement(Statement), Inst(AccInst), newAccessRelation(nullptr) {
OpenPOWER on IntegriCloud