LLVM API Documentation
#include <X86InstrInfo.h>
Inheritance diagram for llvm::X86InstrInfo:
Public Member Functions | |
X86InstrInfo () | |
virtual const MRegisterInfo & | getRegisterInfo () const |
virtual bool | isMoveInstr (const MachineInstr &MI, unsigned &sourceReg, unsigned &destReg) const |
virtual void | insertGoto (MachineBasicBlock &MBB, MachineBasicBlock &TMBB) const |
virtual MachineBasicBlock::iterator | reverseBranchCondition (MachineBasicBlock::iterator MI) const |
unsigned char | getBaseOpcodeFor (unsigned Opcode) const |
Definition at line 163 of file X86InstrInfo.h.
|
Definition at line 20 of file X86InstrInfo.cpp. |
|
Definition at line 195 of file X86InstrInfo.h. References llvm::TargetInstrInfo::get(), llvm::X86II::OpcodeShift, and llvm::TargetInstrDescriptor::TSFlags. |
|
getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As such, whenever a client has an instance of instruction info, it should always be able to get register info as well (through this method). Definition at line 172 of file X86InstrInfo.h. Referenced by llvm::X86TargetMachine::getRegisterInfo(). |
|
Insert a goto (unconditional branch) sequence to TMBB, at the end of MBB Reimplemented from llvm::TargetInstrInfo. Definition at line 42 of file X86InstrInfo.cpp. References llvm::MachineInstrBuilder::addMBB(), llvm::BuildMI(), and llvm::MachineBasicBlock::end(). |
|
Return true if the instruction is a register to register move and leave the source and dest operands in the passed parameters. Reimplemented from llvm::TargetInstrInfo. Definition at line 25 of file X86InstrInfo.cpp. References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), and llvm::MachineOperand::isRegister(). |
|
Reverses the branch condition of the MachineInstr pointed by MI. The instruction is replaced and the new MI is returned. Reimplemented from llvm::TargetInstrInfo. Definition at line 48 of file X86InstrInfo.cpp. References llvm::MachineInstrBuilder::addMBB(), llvm::BuildMI(), llvm::MachineBasicBlock::erase(), and llvm::TargetInstrInfo::isBranch(). |