[polly] r308522 - Make byref llvm::Use parameters const. NFC.

Michael Kruse via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 13:41:56 PDT 2017


Author: meinersbur
Date: Wed Jul 19 13:41:56 2017
New Revision: 308522

URL: http://llvm.org/viewvc/llvm-project?rev=308522&view=rev
Log:
Make byref llvm::Use parameters const. NFC.

Modified:
    polly/trunk/include/polly/Support/ScopHelper.h
    polly/trunk/include/polly/Support/VirtualInstruction.h
    polly/trunk/lib/Support/ScopHelper.cpp
    polly/trunk/lib/Support/VirtualInstruction.cpp

Modified: polly/trunk/include/polly/Support/ScopHelper.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/ScopHelper.h?rev=308522&r1=308521&r2=308522&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/ScopHelper.h (original)
+++ polly/trunk/include/polly/Support/ScopHelper.h Wed Jul 19 13:41:56 2017
@@ -409,7 +409,7 @@ bool canSynthesize(const llvm::Value *V,
 /// operand must be defined (i.e. its definition dominates this block).
 /// Non-instructions do not use operands at a specific point such that in this
 /// case this function returns nullptr.
-llvm::BasicBlock *getUseBlock(llvm::Use &U);
+llvm::BasicBlock *getUseBlock(const llvm::Use &U);
 
 /// Derive the individual index expressions from a GEP instruction.
 ///

Modified: polly/trunk/include/polly/Support/VirtualInstruction.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/include/polly/Support/VirtualInstruction.h?rev=308522&r1=308521&r2=308522&view=diff
==============================================================================
--- polly/trunk/include/polly/Support/VirtualInstruction.h (original)
+++ polly/trunk/include/polly/Support/VirtualInstruction.h Wed Jul 19 13:41:56 2017
@@ -97,7 +97,7 @@ public:
   /// @param Virtual Whether to ignore existing MemoryAcccess.
   ///
   /// @return The VirtualUse representing the same use as @p U.
-  static VirtualUse create(Scop *S, Use &U, LoopInfo *LI, bool Virtual);
+  static VirtualUse create(Scop *S, const Use &U, LoopInfo *LI, bool Virtual);
 
   /// Get a VirtualUse for any kind of use of a value within a statement.
   ///

Modified: polly/trunk/lib/Support/ScopHelper.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/ScopHelper.cpp?rev=308522&r1=308521&r2=308522&view=diff
==============================================================================
--- polly/trunk/lib/Support/ScopHelper.cpp (original)
+++ polly/trunk/lib/Support/ScopHelper.cpp Wed Jul 19 13:41:56 2017
@@ -508,7 +508,7 @@ bool polly::canSynthesize(const Value *V
   return false;
 }
 
-llvm::BasicBlock *polly::getUseBlock(llvm::Use &U) {
+llvm::BasicBlock *polly::getUseBlock(const llvm::Use &U) {
   Instruction *UI = dyn_cast<Instruction>(U.getUser());
   if (!UI)
     return nullptr;

Modified: polly/trunk/lib/Support/VirtualInstruction.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Support/VirtualInstruction.cpp?rev=308522&r1=308521&r2=308522&view=diff
==============================================================================
--- polly/trunk/lib/Support/VirtualInstruction.cpp (original)
+++ polly/trunk/lib/Support/VirtualInstruction.cpp Wed Jul 19 13:41:56 2017
@@ -18,7 +18,8 @@
 using namespace polly;
 using namespace llvm;
 
-VirtualUse VirtualUse ::create(Scop *S, Use &U, LoopInfo *LI, bool Virtual) {
+VirtualUse VirtualUse ::create(Scop *S, const Use &U, LoopInfo *LI,
+                               bool Virtual) {
   auto *UserBB = getUseBlock(U);
   auto *UserStmt = S->getStmtFor(UserBB);
   auto *UserScope = LI->getLoopFor(UserBB);




More information about the llvm-commits mailing list