summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorNicolai Haehnle <nhaehnle@gmail.com>2018-11-19 12:03:11 +0000
committerNicolai Haehnle <nhaehnle@gmail.com>2018-11-19 12:03:11 +0000
commitc548d91419d671d8f7428fb2668b1d9756c6e829 (patch)
tree7ef9d8a6384d0faa3db9abb82f8b3c46c4e308db /llvm/lib/Target
parente7c42dd7e2334c2dd04bbebabf92b40ed6b61031 (diff)
downloadbcm5719-llvm-c548d91419d671d8f7428fb2668b1d9756c6e829.tar.gz
bcm5719-llvm-c548d91419d671d8f7428fb2668b1d9756c6e829.zip
AMDGPU/InsertWaitcnts: Some more const-correctness
Reviewers: msearles, rampitec, scott.linder, kanarayan Subscribers: arsenm, kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye, llvm-commits, hakzsam Differential Revision: https://reviews.llvm.org/D54225 llvm-svn: 347192
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index eb39984f795..13b2ee14ac4 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -178,14 +178,14 @@ public:
}
}
- int32_t getScoreLB(InstCounterType T) {
+ int32_t getScoreLB(InstCounterType T) const {
assert(T < NUM_INST_CNTS);
if (T >= NUM_INST_CNTS)
return 0;
return ScoreLBs[T];
}
- int32_t getScoreUB(InstCounterType T) {
+ int32_t getScoreUB(InstCounterType T) const {
assert(T < NUM_INST_CNTS);
if (T >= NUM_INST_CNTS)
return 0;
@@ -268,7 +268,7 @@ public:
return EventUBs[W];
}
- bool counterOutOfOrder(InstCounterType T);
+ bool counterOutOfOrder(InstCounterType T) const;
unsigned int updateByWait(InstCounterType T, int ScoreToWait);
void updateByEvent(const SIInstrInfo *TII, const SIRegisterInfo *TRI,
const MachineRegisterInfo *MRI, WaitEventType E,
@@ -755,7 +755,7 @@ unsigned int BlockWaitcntBrackets::updateByWait(InstCounterType T,
// Where there are multiple types of event in the bracket of a counter,
// the decrement may go out of order.
-bool BlockWaitcntBrackets::counterOutOfOrder(InstCounterType T) {
+bool BlockWaitcntBrackets::counterOutOfOrder(InstCounterType T) const {
switch (T) {
case VM_CNT:
return false;
OpenPOWER on IntegriCloud