mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
move getRegisterNumbering() to out of ARMBaseRegisterInfo into the helper
functions in ARMBaseInfo.h so it can be used in the MC library as well. For anything bigger than this, we may want a means to have a small support library for shared helper functions like this. Cross that bridge when we come to it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -349,7 +349,7 @@ ARMLoadStoreOpt::MergeLDR_STR(MachineBasicBlock &MBB, unsigned SIndex,
|
||||
const MachineOperand &PMO = Loc->getOperand(0);
|
||||
unsigned PReg = PMO.getReg();
|
||||
unsigned PRegNum = PMO.isUndef() ? UINT_MAX
|
||||
: ARMRegisterInfo::getRegisterNumbering(PReg);
|
||||
: getARMRegisterNumbering(PReg);
|
||||
unsigned Count = 1;
|
||||
|
||||
for (unsigned i = SIndex+1, e = MemOps.size(); i != e; ++i) {
|
||||
@ -357,7 +357,7 @@ ARMLoadStoreOpt::MergeLDR_STR(MachineBasicBlock &MBB, unsigned SIndex,
|
||||
const MachineOperand &MO = MemOps[i].MBBI->getOperand(0);
|
||||
unsigned Reg = MO.getReg();
|
||||
unsigned RegNum = MO.isUndef() ? UINT_MAX
|
||||
: ARMRegisterInfo::getRegisterNumbering(Reg);
|
||||
: getARMRegisterNumbering(Reg);
|
||||
// Register numbers must be in ascending order. For VFP, the registers
|
||||
// must also be consecutive and there is a limit of 16 double-word
|
||||
// registers per instruction.
|
||||
|
Reference in New Issue
Block a user