Skip to content

Commit 63a1242

Browse files
committed
[AMDGPU] clang-tidy: define trivial constructors with = default. NFC.
1 parent ff81bbe commit 63a1242

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class AMDGPULibCalls {
136136
}
137137

138138
public:
139-
AMDGPULibCalls() {}
139+
AMDGPULibCalls() = default;
140140

141141
bool fold(CallInst *CI);
142142

llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class AMDGPUPrintfRuntimeBinding final : public ModulePass {
5050

5151
class AMDGPUPrintfRuntimeBindingImpl {
5252
public:
53-
AMDGPUPrintfRuntimeBindingImpl() {}
53+
AMDGPUPrintfRuntimeBindingImpl() = default;
5454
bool run(Module &M);
5555

5656
private:

llvm/lib/Target/AMDGPU/GCNCreateVOPD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class GCNCreateVOPD : public MachineFunctionPass {
4343
private:
4444
class VOPDCombineInfo {
4545
public:
46-
VOPDCombineInfo() {}
46+
VOPDCombineInfo() = default;
4747
VOPDCombineInfo(MachineInstr *First, MachineInstr *Second)
4848
: FirstMI(First), SecondMI(Second) {}
4949

llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ class WaitcntGenerator {
451451
bool OptNone;
452452

453453
public:
454-
WaitcntGenerator() {}
454+
WaitcntGenerator() = default;
455455
WaitcntGenerator(const MachineFunction &MF, InstCounterType MaxCounter)
456456
: ST(&MF.getSubtarget<GCNSubtarget>()), TII(ST->getInstrInfo()),
457457
IV(AMDGPU::getIsaVersion(ST->getCPU())), MaxCounter(MaxCounter),
@@ -510,7 +510,7 @@ class WaitcntGenerator {
510510

511511
class WaitcntGeneratorPreGFX12 : public WaitcntGenerator {
512512
public:
513-
WaitcntGeneratorPreGFX12() {}
513+
WaitcntGeneratorPreGFX12() = default;
514514
WaitcntGeneratorPreGFX12(const MachineFunction &MF)
515515
: WaitcntGenerator(MF, NUM_NORMAL_INST_CNTS) {}
516516

@@ -545,7 +545,7 @@ class WaitcntGeneratorPreGFX12 : public WaitcntGenerator {
545545

546546
class WaitcntGeneratorGFX12Plus : public WaitcntGenerator {
547547
public:
548-
WaitcntGeneratorGFX12Plus() {}
548+
WaitcntGeneratorGFX12Plus() = default;
549549
WaitcntGeneratorGFX12Plus(const MachineFunction &MF,
550550
InstCounterType MaxCounter)
551551
: WaitcntGenerator(MF, MaxCounter) {}

0 commit comments

Comments
 (0)