public:
static char ID;
- MipsLongBranch()
- : MachineFunctionPass(ID), ABI(MipsABIInfo::Unknown()) {}
+ MipsLongBranch() : MachineFunctionPass(ID), ABI(MipsABIInfo::Unknown()) {
+ initializeMipsLongBranchPass(*PassRegistry::getPassRegistry());
+ }
StringRef getPassName() const override { return "Mips Long Branch"; }
char MipsLongBranch::ID = 0;
+INITIALIZE_PASS(MipsLongBranch, DEBUG_TYPE,
+ "Expand out of range branch instructions", false, false)
+
/// Iterate over list of Br's operands and search for a MachineBasicBlock
/// operand.
static MachineBasicBlock *getTargetMBB(const MachineInstr &Br) {
PassRegistry *PR = PassRegistry::getPassRegistry();
initializeGlobalISel(*PR);
initializeMipsDelaySlotFillerPass(*PR);
+ initializeMipsLongBranchPass(*PR);
}
static std::string computeDataLayout(const Triple &TT, StringRef CPU,