[llvm] 80d2614 - [AMDGPU] clang-tidy: use override consistently. NFC.

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 07:56:11 PDT 2024


Author: Jay Foad
Date: 2024-07-16T15:55:39+01:00
New Revision: 80d261493e9bd3046fd56c77e276a105cc20c185

URL: https://github.com/llvm/llvm-project/commit/80d261493e9bd3046fd56c77e276a105cc20c185
DIFF: https://github.com/llvm/llvm-project/commit/80d261493e9bd3046fd56c77e276a105cc20c185.diff

LOG: [AMDGPU] clang-tidy: use override consistently. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
    llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
index 9e7694f41d6b8..936d3f98377ac 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
@@ -111,7 +111,7 @@ class ApplyRegBankMapping final : public GISelChangeObserver {
     B.setChangeObserver(*this);
   }
 
-  ~ApplyRegBankMapping() {
+  ~ApplyRegBankMapping() override {
     for (MachineInstr *MI : NewInsts)
       applyBank(*MI);
 

diff  --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index bc77b4ca36c30..a18da72b02ebe 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -540,7 +540,7 @@ class WaitcntGeneratorPreGFX12 : public WaitcntGenerator {
     return WaitEventMaskForInstPreGFX12;
   }
 
-  virtual AMDGPU::Waitcnt getAllZeroWaitcnt(bool IncludeVSCnt) const override;
+  AMDGPU::Waitcnt getAllZeroWaitcnt(bool IncludeVSCnt) const override;
 };
 
 class WaitcntGeneratorGFX12Plus : public WaitcntGenerator {
@@ -575,7 +575,7 @@ class WaitcntGeneratorGFX12Plus : public WaitcntGenerator {
     return WaitEventMaskForInstGFX12Plus;
   }
 
-  virtual AMDGPU::Waitcnt getAllZeroWaitcnt(bool IncludeVSCnt) const override;
+  AMDGPU::Waitcnt getAllZeroWaitcnt(bool IncludeVSCnt) const override;
 };
 
 class SIInsertWaitcnts : public MachineFunctionPass {


        


More information about the llvm-commits mailing list