File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,8 @@ class MemoryAccess {
136
136
// / could allow us to handle the above example.
137
137
ReductionType RedType = RT_NONE;
138
138
139
- const Instruction *Inst;
139
+ // / @brief The access instruction of this memory access.
140
+ Instruction *Inst;
140
141
141
142
// / Updated access relation read from JSCOP file.
142
143
isl_map *newAccessRelation;
@@ -149,7 +150,7 @@ class MemoryAccess {
149
150
// / @param Access The memory access.
150
151
// / @param Statement The statement that contains the access.
151
152
// / @param SE The ScalarEvolution analysis.
152
- MemoryAccess (const IRAccess &Access, const Instruction *AccInst,
153
+ MemoryAccess (const IRAccess &Access, Instruction *AccInst,
153
154
ScopStmt *Statement);
154
155
155
156
~MemoryAccess ();
@@ -194,7 +195,8 @@ class MemoryAccess {
194
195
195
196
const std::string &getBaseName () const { return BaseName; }
196
197
197
- const Instruction *getAccessInstruction () const { return Inst; }
198
+ // / @brief Return the access instruction of this memory access.
199
+ Instruction *getAccessInstruction () const { return Inst; }
198
200
199
201
// / @brief Get the new access function imported from JSCOP file
200
202
isl_map *getNewAccessRelation () const ;
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ void MemoryAccess::assumeNoOutOfBound(const IRAccess &Access) {
414
414
isl_space_free (Space);
415
415
}
416
416
417
- MemoryAccess::MemoryAccess (const IRAccess &Access, const Instruction *AccInst,
417
+ MemoryAccess::MemoryAccess (const IRAccess &Access, Instruction *AccInst,
418
418
ScopStmt *Statement)
419
419
: Statement(Statement), Inst(AccInst), newAccessRelation(nullptr ) {
420
420
You can’t perform that action at this time.
0 commit comments