diff options
Diffstat (limited to 'contrib/llvm/lib/Target/Mips/Mips16InstrInfo.h')
-rw-r--r-- | contrib/llvm/lib/Target/Mips/Mips16InstrInfo.h | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/contrib/llvm/lib/Target/Mips/Mips16InstrInfo.h b/contrib/llvm/lib/Target/Mips/Mips16InstrInfo.h index 6540b40bc9ab..ab559799f00b 100644 --- a/contrib/llvm/lib/Target/Mips/Mips16InstrInfo.h +++ b/contrib/llvm/lib/Target/Mips/Mips16InstrInfo.h @@ -32,7 +32,7 @@ public: /// the destination along with the FrameIndex of the loaded stack slot. If /// not, return 0. This predicate must return 0 if the instruction has /// any side effects other than loading from the stack slot. - unsigned isLoadFromStackSlot(const MachineInstr *MI, + unsigned isLoadFromStackSlot(const MachineInstr &MI, int &FrameIndex) const override; /// isStoreToStackSlot - If the specified machine instruction is a direct @@ -40,12 +40,11 @@ public: /// the source reg along with the FrameIndex of the loaded stack slot. If /// not, return 0. This predicate must return 0 if the instruction has /// any side effects other than storing to the stack slot. - unsigned isStoreToStackSlot(const MachineInstr *MI, + unsigned isStoreToStackSlot(const MachineInstr &MI, int &FrameIndex) const override; - void copyPhysReg(MachineBasicBlock &MBB, - MachineBasicBlock::iterator MI, DebugLoc DL, - unsigned DestReg, unsigned SrcReg, + void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, + const DebugLoc &DL, unsigned DestReg, unsigned SrcReg, bool KillSrc) const override; void storeRegToStack(MachineBasicBlock &MBB, @@ -62,7 +61,7 @@ public: const TargetRegisterInfo *TRI, int64_t Offset) const override; - bool expandPostRAPseudo(MachineBasicBlock::iterator MI) const override; + bool expandPostRAPseudo(MachineInstr &MI) const override; unsigned getOppositeBranchOpc(unsigned Opc) const override; @@ -83,9 +82,8 @@ public: // This is to adjust some FrameReg. We return the new register to be used // in place of FrameReg and the adjusted immediate field (&NewImm) // - unsigned loadImmediate(unsigned FrameReg, - int64_t Imm, MachineBasicBlock &MBB, - MachineBasicBlock::iterator II, DebugLoc DL, + unsigned loadImmediate(unsigned FrameReg, int64_t Imm, MachineBasicBlock &MBB, + MachineBasicBlock::iterator II, const DebugLoc &DL, unsigned &NewImm) const; static bool validImmediate(unsigned Opcode, unsigned Reg, int64_t Amount); |