diff --git a/llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp b/llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp index 79f37a0f548c6..27d20390eb6ae 100644 --- a/llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp +++ b/llvm/lib/Target/LoongArch/LoongArchExpandAtomicPseudoInsts.cpp @@ -33,9 +33,7 @@ class LoongArchExpandAtomicPseudo : public MachineFunctionPass { const LoongArchInstrInfo *TII; static char ID; - LoongArchExpandAtomicPseudo() : MachineFunctionPass(ID) { - initializeLoongArchExpandAtomicPseudoPass(*PassRegistry::getPassRegistry()); - } + LoongArchExpandAtomicPseudo() : MachineFunctionPass(ID) {} bool runOnMachineFunction(MachineFunction &MF) override; diff --git a/llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp b/llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp index c2d73a260b1c1..9e9c65a041bf7 100644 --- a/llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp +++ b/llvm/lib/Target/LoongArch/LoongArchExpandPseudoInsts.cpp @@ -41,9 +41,7 @@ class LoongArchPreRAExpandPseudo : public MachineFunctionPass { const LoongArchInstrInfo *TII; static char ID; - LoongArchPreRAExpandPseudo() : MachineFunctionPass(ID) { - initializeLoongArchPreRAExpandPseudoPass(*PassRegistry::getPassRegistry()); - } + LoongArchPreRAExpandPseudo() : MachineFunctionPass(ID) {} bool runOnMachineFunction(MachineFunction &MF) override; @@ -656,9 +654,7 @@ class LoongArchExpandPseudo : public MachineFunctionPass { const LoongArchInstrInfo *TII; static char ID; - LoongArchExpandPseudo() : MachineFunctionPass(ID) { - initializeLoongArchExpandPseudoPass(*PassRegistry::getPassRegistry()); - } + LoongArchExpandPseudo() : MachineFunctionPass(ID) {} bool runOnMachineFunction(MachineFunction &MF) override; diff --git a/llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp b/llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp index 692392dc2bae0..dc490e8185504 100644 --- a/llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp +++ b/llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp @@ -40,6 +40,7 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLoongArchTarget() { initializeLoongArchPreRAExpandPseudoPass(*PR); initializeLoongArchExpandPseudoPass(*PR); initializeLoongArchDAGToDAGISelLegacyPass(*PR); + initializeLoongArchExpandAtomicPseudoPass(*PR); } static cl::opt EnableLoongArchDeadRegisterElimination( diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyExceptionInfo.h b/llvm/lib/Target/WebAssembly/WebAssemblyExceptionInfo.h index 832ef1e49d784..7845cdfaebec7 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyExceptionInfo.h +++ b/llvm/lib/Target/WebAssembly/WebAssemblyExceptionInfo.h @@ -132,9 +132,7 @@ class WebAssemblyExceptionInfo final : public MachineFunctionPass { public: static char ID; - WebAssemblyExceptionInfo() : MachineFunctionPass(ID) { - initializeWebAssemblyExceptionInfoPass(*PassRegistry::getPassRegistry()); - } + WebAssemblyExceptionInfo() : MachineFunctionPass(ID) {} ~WebAssemblyExceptionInfo() override { releaseMemory(); } WebAssemblyExceptionInfo(const WebAssemblyExceptionInfo &) = delete; WebAssemblyExceptionInfo &