Skip to content

Commit 83cb038

Browse files
jayfoadyuxuanchen1997
authored andcommitted
[AMDGPU] clang-tidy: use override consistently. NFC.
1 parent da72050 commit 83cb038

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class ApplyRegBankMapping final : public GISelChangeObserver {
111111
B.setChangeObserver(*this);
112112
}
113113

114-
~ApplyRegBankMapping() {
114+
~ApplyRegBankMapping() override {
115115
for (MachineInstr *MI : NewInsts)
116116
applyBank(*MI);
117117

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ class WaitcntGeneratorPreGFX12 : public WaitcntGenerator {
540540
return WaitEventMaskForInstPreGFX12;
541541
}
542542

543-
virtual AMDGPU::Waitcnt getAllZeroWaitcnt(bool IncludeVSCnt) const override;
543+
AMDGPU::Waitcnt getAllZeroWaitcnt(bool IncludeVSCnt) const override;
544544
};
545545

546546
class WaitcntGeneratorGFX12Plus : public WaitcntGenerator {
@@ -575,7 +575,7 @@ class WaitcntGeneratorGFX12Plus : public WaitcntGenerator {
575575
return WaitEventMaskForInstGFX12Plus;
576576
}
577577

578-
virtual AMDGPU::Waitcnt getAllZeroWaitcnt(bool IncludeVSCnt) const override;
578+
AMDGPU::Waitcnt getAllZeroWaitcnt(bool IncludeVSCnt) const override;
579579
};
580580

581581
class SIInsertWaitcnts : public MachineFunctionPass {

0 commit comments

Comments
 (0)