mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 22:07:27 +00:00
Add a simple way to add memory locations of format [reg+offset]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4825 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f6a132c7a0
commit
faf0b8c401
@ -25,4 +25,13 @@ inline const MachineInstrBuilder &addDirectMem(const MachineInstrBuilder &MIB,
|
||||
return MIB.addReg(Reg).addZImm(1).addMReg(0).addSImm(0);
|
||||
}
|
||||
|
||||
|
||||
/// addRegOffset -
|
||||
///
|
||||
///
|
||||
inline const MachineInstrBuilder &addRegOffset(const MachineInstrBuilder &MIB,
|
||||
unsigned Reg, unsigned Offset) {
|
||||
return MIB.addReg(Reg).addZImm(1).addMReg(0).addSImm(Offset);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user