mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Add PPC specific emitFrameIndexDebugValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102325 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -645,6 +645,16 @@ PPCInstrInfo::loadRegFromStackSlot(MachineBasicBlock &MBB,
|
|||||||
MBB.insert(MI, NewMIs[i]);
|
MBB.insert(MI, NewMIs[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MachineInstr*
|
||||||
|
PPCInstrInfo::emitFrameIndexDebugValue(MachineFunction &MF,
|
||||||
|
unsigned FrameIx, uint64_t Offset,
|
||||||
|
const MDNode *MDPtr,
|
||||||
|
DebugLoc DL) const {
|
||||||
|
MachineInstrBuilder MIB = BuildMI(MF, DL, get(PPC::DBG_VALUE));
|
||||||
|
addFrameReference(MIB, FrameIx, 0, false).addImm(Offset).addMetadata(MDPtr);
|
||||||
|
return &*MIB;
|
||||||
|
}
|
||||||
|
|
||||||
/// foldMemoryOperand - PowerPC (like most RISC's) can only fold spills into
|
/// foldMemoryOperand - PowerPC (like most RISC's) can only fold spills into
|
||||||
/// copy instructions, turning them into load/store instructions.
|
/// copy instructions, turning them into load/store instructions.
|
||||||
MachineInstr *PPCInstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
|
MachineInstr *PPCInstrInfo::foldMemoryOperandImpl(MachineFunction &MF,
|
||||||
|
@@ -126,6 +126,12 @@ public:
|
|||||||
unsigned DestReg, int FrameIndex,
|
unsigned DestReg, int FrameIndex,
|
||||||
const TargetRegisterClass *RC) const;
|
const TargetRegisterClass *RC) const;
|
||||||
|
|
||||||
|
virtual MachineInstr *emitFrameIndexDebugValue(MachineFunction &MF,
|
||||||
|
unsigned FrameIx,
|
||||||
|
uint64_t Offset,
|
||||||
|
const MDNode *MDPtr,
|
||||||
|
DebugLoc DL) const;
|
||||||
|
|
||||||
/// foldMemoryOperand - PowerPC (like most RISC's) can only fold spills into
|
/// foldMemoryOperand - PowerPC (like most RISC's) can only fold spills into
|
||||||
/// copy instructions, turning them into load/store instructions.
|
/// copy instructions, turning them into load/store instructions.
|
||||||
virtual MachineInstr* foldMemoryOperandImpl(MachineFunction &MF,
|
virtual MachineInstr* foldMemoryOperandImpl(MachineFunction &MF,
|
||||||
|
Reference in New Issue
Block a user