[polly] r215309 - [Refactor] Remove const keyword from access instruction

Johannes Doerfert jdoerfert at codeaurora.org
Sun Aug 10 01:09:38 PDT 2014


Author: jdoerfert
Date: Sun Aug 10 03:09:38 2014
New Revision: 215309

URL: http://llvm.org/viewvc/llvm-project?rev=215309&view=rev
Log:
[Refactor] Remove const keyword from access instruction


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=215309&r1=215308&r2=215309&view=diff
==============================================================================
--- polly/trunk/include/polly/ScopInfo.h (original)
+++ polly/trunk/include/polly/ScopInfo.h Sun Aug 10 03:09:38 2014
@@ -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;

Modified: polly/trunk/lib/Analysis/ScopInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopInfo.cpp?rev=215309&r1=215308&r2=215309&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopInfo.cpp (original)
+++ polly/trunk/lib/Analysis/ScopInfo.cpp Sun Aug 10 03:09:38 2014
@@ -414,7 +414,7 @@ void MemoryAccess::assumeNoOutOfBound(co
   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) {
 





More information about the llvm-commits mailing list