14 #ifndef LLVM_LIB_TARGET_MSP430_MSP430INSTRINFO_H 15 #define LLVM_LIB_TARGET_MSP430_MSP430INSTRINFO_H 20 #define GET_INSTRINFO_HEADER 21 #include "MSP430GenInstrInfo.inc" 25 class MSP430Subtarget;
29 virtual void anchor();
40 const DebugLoc &DL,
unsigned DestReg,
unsigned SrcReg,
41 bool KillSrc)
const override;
45 unsigned SrcReg,
bool isKill,
51 unsigned DestReg,
int FrameIdx,
64 bool AllowModify)
const override;
67 int *BytesRemoved =
nullptr)
const override;
71 int *BytesAdded =
nullptr)
const override;
74 assert(isFrameInstr(I) &&
"Not a frame instruction");
This class represents lattice values for constants.
unsigned const TargetRegisterInfo * TRI
bool isUnpredicatedTerminator(const MachineInstr &MI) const override
void loadRegFromStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, unsigned DestReg, int FrameIdx, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI) const override
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
void copyPhysReg(MachineBasicBlock &MBB, MachineBasicBlock::iterator I, const DebugLoc &DL, unsigned DestReg, unsigned SrcReg, bool KillSrc) const override
bool analyzeBranch(MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl< MachineOperand > &Cond, bool AllowModify) const override
unsigned insertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef< MachineOperand > Cond, const DebugLoc &DL, int *BytesAdded=nullptr) const override
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
bool reverseBranchCondition(SmallVectorImpl< MachineOperand > &Cond) const override
unsigned getInstSizeInBytes(const MachineInstr &MI) const override
GetInstSize - Return the number of bytes of code the specified instruction may be.
void storeRegToStackSlot(MachineBasicBlock &MBB, MachineBasicBlock::iterator MI, unsigned SrcReg, bool isKill, int FrameIndex, const TargetRegisterClass *RC, const TargetRegisterInfo *TRI) const override
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
unsigned removeBranch(MachineBasicBlock &MBB, int *BytesRemoved=nullptr) const override
MSP430InstrInfo(MSP430Subtarget &STI)
int64_t getFramePoppedByCallee(const MachineInstr &I) const
Representation of each machine instruction.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
const MachineOperand & getOperand(unsigned i) const
const TargetRegisterInfo & getRegisterInfo() const
getRegisterInfo - TargetInstrInfo is a superset of MRegister info.