Skip to content

Commit 89da6bb

Browse files
committed
Make byref llvm::Use parameters const. NFC.
llvm-svn: 308522
1 parent eb04da3 commit 89da6bb

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

polly/include/polly/Support/ScopHelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ bool canSynthesize(const llvm::Value *V, const Scop &S,
409409
/// operand must be defined (i.e. its definition dominates this block).
410410
/// Non-instructions do not use operands at a specific point such that in this
411411
/// case this function returns nullptr.
412-
llvm::BasicBlock *getUseBlock(llvm::Use &U);
412+
llvm::BasicBlock *getUseBlock(const llvm::Use &U);
413413

414414
/// Derive the individual index expressions from a GEP instruction.
415415
///

polly/include/polly/Support/VirtualInstruction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class VirtualUse {
9797
/// @param Virtual Whether to ignore existing MemoryAcccess.
9898
///
9999
/// @return The VirtualUse representing the same use as @p U.
100-
static VirtualUse create(Scop *S, Use &U, LoopInfo *LI, bool Virtual);
100+
static VirtualUse create(Scop *S, const Use &U, LoopInfo *LI, bool Virtual);
101101

102102
/// Get a VirtualUse for any kind of use of a value within a statement.
103103
///

polly/lib/Support/ScopHelper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ bool polly::canSynthesize(const Value *V, const Scop &S, ScalarEvolution *SE,
508508
return false;
509509
}
510510

511-
llvm::BasicBlock *polly::getUseBlock(llvm::Use &U) {
511+
llvm::BasicBlock *polly::getUseBlock(const llvm::Use &U) {
512512
Instruction *UI = dyn_cast<Instruction>(U.getUser());
513513
if (!UI)
514514
return nullptr;

polly/lib/Support/VirtualInstruction.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
using namespace polly;
1919
using namespace llvm;
2020

21-
VirtualUse VirtualUse ::create(Scop *S, Use &U, LoopInfo *LI, bool Virtual) {
21+
VirtualUse VirtualUse ::create(Scop *S, const Use &U, LoopInfo *LI,
22+
bool Virtual) {
2223
auto *UserBB = getUseBlock(U);
2324
auto *UserStmt = S->getStmtFor(UserBB);
2425
auto *UserScope = LI->getLoopFor(UserBB);

0 commit comments

Comments
 (0)