Skip to content

[NFC][LLVM][SystemZ] Cleanup pass initialization for SystemZ #134450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions llvm/lib/Target/SystemZ/SystemZCopyPhysRegs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ namespace {
class SystemZCopyPhysRegs : public MachineFunctionPass {
public:
static char ID;
SystemZCopyPhysRegs()
: MachineFunctionPass(ID), TII(nullptr), MRI(nullptr) {
initializeSystemZCopyPhysRegsPass(*PassRegistry::getPassRegistry());
}
SystemZCopyPhysRegs() : MachineFunctionPass(ID), TII(nullptr), MRI(nullptr) {}

bool runOnMachineFunction(MachineFunction &MF) override;
void getAnalysisUsage(AnalysisUsage &AU) const override;
Expand Down
4 changes: 1 addition & 3 deletions llvm/lib/Target/SystemZ/SystemZElimCompare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ class SystemZElimCompare : public MachineFunctionPass {
public:
static char ID;

SystemZElimCompare() : MachineFunctionPass(ID) {
initializeSystemZElimComparePass(*PassRegistry::getPassRegistry());
}
SystemZElimCompare() : MachineFunctionPass(ID) {}

bool processBlock(MachineBasicBlock &MBB);
bool runOnMachineFunction(MachineFunction &F) override;
Expand Down
4 changes: 1 addition & 3 deletions llvm/lib/Target/SystemZ/SystemZLDCleanup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ namespace {
class SystemZLDCleanup : public MachineFunctionPass {
public:
static char ID;
SystemZLDCleanup() : MachineFunctionPass(ID), TII(nullptr), MF(nullptr) {
initializeSystemZLDCleanupPass(*PassRegistry::getPassRegistry());
}
SystemZLDCleanup() : MachineFunctionPass(ID), TII(nullptr), MF(nullptr) {}

bool runOnMachineFunction(MachineFunction &MF) override;
void getAnalysisUsage(AnalysisUsage &AU) const override;
Expand Down
4 changes: 1 addition & 3 deletions llvm/lib/Target/SystemZ/SystemZLongBranch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,7 @@ class SystemZLongBranch : public MachineFunctionPass {
public:
static char ID;

SystemZLongBranch() : MachineFunctionPass(ID) {
initializeSystemZLongBranchPass(*PassRegistry::getPassRegistry());
}
SystemZLongBranch() : MachineFunctionPass(ID) {}

bool runOnMachineFunction(MachineFunction &F) override;

Expand Down
4 changes: 1 addition & 3 deletions llvm/lib/Target/SystemZ/SystemZPostRewrite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ namespace {
class SystemZPostRewrite : public MachineFunctionPass {
public:
static char ID;
SystemZPostRewrite() : MachineFunctionPass(ID) {
initializeSystemZPostRewritePass(*PassRegistry::getPassRegistry());
}
SystemZPostRewrite() : MachineFunctionPass(ID) {}

const SystemZInstrInfo *TII;

Expand Down
4 changes: 1 addition & 3 deletions llvm/lib/Target/SystemZ/SystemZShortenInst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ FunctionPass *llvm::createSystemZShortenInstPass(SystemZTargetMachine &TM) {
}

SystemZShortenInst::SystemZShortenInst()
: MachineFunctionPass(ID), TII(nullptr) {
initializeSystemZShortenInstPass(*PassRegistry::getPassRegistry());
}
: MachineFunctionPass(ID), TII(nullptr) {}

// Tie operands if MI has become a two-address instruction.
static void tieOpsIfNeeded(MachineInstr &MI) {
Expand Down
4 changes: 1 addition & 3 deletions llvm/lib/Target/SystemZ/SystemZTDC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ namespace {
class SystemZTDCPass : public FunctionPass {
public:
static char ID;
SystemZTDCPass() : FunctionPass(ID) {
initializeSystemZTDCPassPass(*PassRegistry::getPassRegistry());
}
SystemZTDCPass() : FunctionPass(ID) {}

bool runOnFunction(Function &F) override;

Expand Down