Skip to content

Commit 80fde75

Browse files
authored
[NFC][LLVM][SystemZ] Cleanup pass initialization for SystemZ (llvm#134450)
- Remove calls to pass initialization from pass constructors. - llvm#111767
1 parent a168ddc commit 80fde75

File tree

7 files changed

+7
-22
lines changed

7 files changed

+7
-22
lines changed

llvm/lib/Target/SystemZ/SystemZCopyPhysRegs.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,7 @@ namespace {
2828
class SystemZCopyPhysRegs : public MachineFunctionPass {
2929
public:
3030
static char ID;
31-
SystemZCopyPhysRegs()
32-
: MachineFunctionPass(ID), TII(nullptr), MRI(nullptr) {
33-
initializeSystemZCopyPhysRegsPass(*PassRegistry::getPassRegistry());
34-
}
31+
SystemZCopyPhysRegs() : MachineFunctionPass(ID), TII(nullptr), MRI(nullptr) {}
3532

3633
bool runOnMachineFunction(MachineFunction &MF) override;
3734
void getAnalysisUsage(AnalysisUsage &AU) const override;

llvm/lib/Target/SystemZ/SystemZElimCompare.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,7 @@ class SystemZElimCompare : public MachineFunctionPass {
6565
public:
6666
static char ID;
6767

68-
SystemZElimCompare() : MachineFunctionPass(ID) {
69-
initializeSystemZElimComparePass(*PassRegistry::getPassRegistry());
70-
}
68+
SystemZElimCompare() : MachineFunctionPass(ID) {}
7169

7270
bool processBlock(MachineBasicBlock &MBB);
7371
bool runOnMachineFunction(MachineFunction &F) override;

llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ namespace {
2828
class SystemZLDCleanup : public MachineFunctionPass {
2929
public:
3030
static char ID;
31-
SystemZLDCleanup() : MachineFunctionPass(ID), TII(nullptr), MF(nullptr) {
32-
initializeSystemZLDCleanupPass(*PassRegistry::getPassRegistry());
33-
}
31+
SystemZLDCleanup() : MachineFunctionPass(ID), TII(nullptr), MF(nullptr) {}
3432

3533
bool runOnMachineFunction(MachineFunction &MF) override;
3634
void getAnalysisUsage(AnalysisUsage &AU) const override;

llvm/lib/Target/SystemZ/SystemZLongBranch.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,7 @@ class SystemZLongBranch : public MachineFunctionPass {
135135
public:
136136
static char ID;
137137

138-
SystemZLongBranch() : MachineFunctionPass(ID) {
139-
initializeSystemZLongBranchPass(*PassRegistry::getPassRegistry());
140-
}
138+
SystemZLongBranch() : MachineFunctionPass(ID) {}
141139

142140
bool runOnMachineFunction(MachineFunction &F) override;
143141

llvm/lib/Target/SystemZ/SystemZPostRewrite.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ namespace {
3232
class SystemZPostRewrite : public MachineFunctionPass {
3333
public:
3434
static char ID;
35-
SystemZPostRewrite() : MachineFunctionPass(ID) {
36-
initializeSystemZPostRewritePass(*PassRegistry::getPassRegistry());
37-
}
35+
SystemZPostRewrite() : MachineFunctionPass(ID) {}
3836

3937
const SystemZInstrInfo *TII;
4038

llvm/lib/Target/SystemZ/SystemZShortenInst.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,7 @@ FunctionPass *llvm::createSystemZShortenInstPass(SystemZTargetMachine &TM) {
6060
}
6161

6262
SystemZShortenInst::SystemZShortenInst()
63-
: MachineFunctionPass(ID), TII(nullptr) {
64-
initializeSystemZShortenInstPass(*PassRegistry::getPassRegistry());
65-
}
63+
: MachineFunctionPass(ID), TII(nullptr) {}
6664

6765
// Tie operands if MI has become a two-address instruction.
6866
static void tieOpsIfNeeded(MachineInstr &MI) {

llvm/lib/Target/SystemZ/SystemZTDC.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ namespace {
6464
class SystemZTDCPass : public FunctionPass {
6565
public:
6666
static char ID;
67-
SystemZTDCPass() : FunctionPass(ID) {
68-
initializeSystemZTDCPassPass(*PassRegistry::getPassRegistry());
69-
}
67+
SystemZTDCPass() : FunctionPass(ID) {}
7068

7169
bool runOnFunction(Function &F) override;
7270

0 commit comments

Comments
 (0)