Changeset View
Changeset View
Standalone View
Standalone View
llvm/trunk/lib/Target/Mips/MipsInstrInfo.h
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | public: | ||||
/// Create an instruction which has the same operands and memory operands | /// Create an instruction which has the same operands and memory operands | ||||
/// as MI but has a new opcode. | /// as MI but has a new opcode. | ||||
MachineInstrBuilder genInstrWithNewOpc(unsigned NewOpc, | MachineInstrBuilder genInstrWithNewOpc(unsigned NewOpc, | ||||
MachineBasicBlock::iterator I) const; | MachineBasicBlock::iterator I) const; | ||||
bool findCommutedOpIndices(MachineInstr &MI, unsigned &SrcOpIdx1, | bool findCommutedOpIndices(MachineInstr &MI, unsigned &SrcOpIdx1, | ||||
unsigned &SrcOpIdx2) const override; | unsigned &SrcOpIdx2) const override; | ||||
/// Perform target specific instruction verification. | |||||
bool verifyInstruction(const MachineInstr &MI, | |||||
StringRef &ErrInfo) const override; | |||||
protected: | protected: | ||||
bool isZeroImm(const MachineOperand &op) const; | bool isZeroImm(const MachineOperand &op) const; | ||||
MachineMemOperand *GetMemOperand(MachineBasicBlock &MBB, int FI, | MachineMemOperand *GetMemOperand(MachineBasicBlock &MBB, int FI, | ||||
MachineMemOperand::Flags Flags) const; | MachineMemOperand::Flags Flags) const; | ||||
private: | private: | ||||
virtual unsigned getAnalyzableBrOpc(unsigned Opc) const = 0; | virtual unsigned getAnalyzableBrOpc(unsigned Opc) const = 0; | ||||
Show All 16 Lines |