mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Another API change to MRegisterInfo::foldMemoryOperand. Instead of a
MachineBasicBlock::iterator take a MachineInstr*. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12392 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7546c3884a
commit
a1a7148c4d
@ -259,7 +259,7 @@ public:
|
|||||||
/// is returned with the specified operand folded, otherwise NULL is
|
/// is returned with the specified operand folded, otherwise NULL is
|
||||||
/// returned. The client is responsible for removing the old
|
/// returned. The client is responsible for removing the old
|
||||||
/// instruction and adding the new one in the instruction stream
|
/// instruction and adding the new one in the instruction stream
|
||||||
virtual MachineInstr* foldMemoryOperand(MachineBasicBlock::iterator MI,
|
virtual MachineInstr* foldMemoryOperand(MachineInstr* MI,
|
||||||
unsigned OpNum,
|
unsigned OpNum,
|
||||||
int FrameIndex) const {
|
int FrameIndex) const {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -132,10 +132,9 @@ static MachineInstr *MakeRMIInst(unsigned Opcode, unsigned FrameIndex,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MachineInstr* X86RegisterInfo::foldMemoryOperand(
|
MachineInstr* X86RegisterInfo::foldMemoryOperand(MachineInstr* MI,
|
||||||
MachineBasicBlock::iterator MI,
|
unsigned i,
|
||||||
unsigned i,
|
int FrameIndex) const {
|
||||||
int FrameIndex) const {
|
|
||||||
if (NoFusing) return NULL;
|
if (NoFusing) return NULL;
|
||||||
|
|
||||||
/// FIXME: This should obviously be autogenerated by tablegen when patterns
|
/// FIXME: This should obviously be autogenerated by tablegen when patterns
|
||||||
|
@ -48,7 +48,7 @@ struct X86RegisterInfo : public X86GenRegisterInfo {
|
|||||||
/// folding and return true, otherwise it should return false. If it folds
|
/// folding and return true, otherwise it should return false. If it folds
|
||||||
/// the instruction, it is likely that the MachineInstruction the iterator
|
/// the instruction, it is likely that the MachineInstruction the iterator
|
||||||
/// references has been changed.
|
/// references has been changed.
|
||||||
virtual MachineInstr* foldMemoryOperand(MachineBasicBlock::iterator MI,
|
virtual MachineInstr* foldMemoryOperand(MachineInstr* MI,
|
||||||
unsigned OpNum,
|
unsigned OpNum,
|
||||||
int FrameIndex) const;
|
int FrameIndex) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user