[llvm] 63a1242 - [AMDGPU] clang-tidy: define trivial constructors with = default. NFC.
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 16 07:43:01 PDT 2024
Author: Jay Foad
Date: 2024-07-16T15:41:54+01:00
New Revision: 63a1242ae3f1ebc13831ac71cd19aa0cf98278dc
URL: https://github.com/llvm/llvm-project/commit/63a1242ae3f1ebc13831ac71cd19aa0cf98278dc
DIFF: https://github.com/llvm/llvm-project/commit/63a1242ae3f1ebc13831ac71cd19aa0cf98278dc.diff
LOG: [AMDGPU] clang-tidy: define trivial constructors with = default. NFC.
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
llvm/lib/Target/AMDGPU/GCNCreateVOPD.cpp
llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp b/llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
index 456f3cb332cf8..2491b605693f1 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp
@@ -136,7 +136,7 @@ class AMDGPULibCalls {
}
public:
- AMDGPULibCalls() {}
+ AMDGPULibCalls() = default;
bool fold(CallInst *CI);
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp b/llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
index c97a40976bd2b..4d3474892f1ad 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
@@ -50,7 +50,7 @@ class AMDGPUPrintfRuntimeBinding final : public ModulePass {
class AMDGPUPrintfRuntimeBindingImpl {
public:
- AMDGPUPrintfRuntimeBindingImpl() {}
+ AMDGPUPrintfRuntimeBindingImpl() = default;
bool run(Module &M);
private:
diff --git a/llvm/lib/Target/AMDGPU/GCNCreateVOPD.cpp b/llvm/lib/Target/AMDGPU/GCNCreateVOPD.cpp
index 1dda1b89b2d36..7a25a90d8bb05 100644
--- a/llvm/lib/Target/AMDGPU/GCNCreateVOPD.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNCreateVOPD.cpp
@@ -43,7 +43,7 @@ class GCNCreateVOPD : public MachineFunctionPass {
private:
class VOPDCombineInfo {
public:
- VOPDCombineInfo() {}
+ VOPDCombineInfo() = default;
VOPDCombineInfo(MachineInstr *First, MachineInstr *Second)
: FirstMI(First), SecondMI(Second) {}
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index 00eb4d60521ea..bc77b4ca36c30 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -451,7 +451,7 @@ class WaitcntGenerator {
bool OptNone;
public:
- WaitcntGenerator() {}
+ WaitcntGenerator() = default;
WaitcntGenerator(const MachineFunction &MF, InstCounterType MaxCounter)
: ST(&MF.getSubtarget<GCNSubtarget>()), TII(ST->getInstrInfo()),
IV(AMDGPU::getIsaVersion(ST->getCPU())), MaxCounter(MaxCounter),
@@ -510,7 +510,7 @@ class WaitcntGenerator {
class WaitcntGeneratorPreGFX12 : public WaitcntGenerator {
public:
- WaitcntGeneratorPreGFX12() {}
+ WaitcntGeneratorPreGFX12() = default;
WaitcntGeneratorPreGFX12(const MachineFunction &MF)
: WaitcntGenerator(MF, NUM_NORMAL_INST_CNTS) {}
@@ -545,7 +545,7 @@ class WaitcntGeneratorPreGFX12 : public WaitcntGenerator {
class WaitcntGeneratorGFX12Plus : public WaitcntGenerator {
public:
- WaitcntGeneratorGFX12Plus() {}
+ WaitcntGeneratorGFX12Plus() = default;
WaitcntGeneratorGFX12Plus(const MachineFunction &MF,
InstCounterType MaxCounter)
: WaitcntGenerator(MF, MaxCounter) {}
More information about the llvm-commits
mailing list