LLVM
8.0.1
|
#include "Target/NVPTX/NVPTXInstrInfo.h"
Public Member Functions | |
NVPTXInstrInfo () | |
const NVPTXRegisterInfo & | getRegisterInfo () const |
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 |
AnalyzeBranch - Analyze the branching code at the end of MBB, returning true if it cannot be understood (e.g. More... | |
unsigned | removeBranch (MachineBasicBlock &MBB, int *BytesRemoved=nullptr) const override |
unsigned | insertBranch (MachineBasicBlock &MBB, MachineBasicBlock *TBB, MachineBasicBlock *FBB, ArrayRef< MachineOperand > Cond, const DebugLoc &DL, int *BytesAdded=nullptr) const override |
Definition at line 26 of file NVPTXInstrInfo.h.
|
explicit |
Definition at line 31 of file NVPTXInstrInfo.cpp.
|
override |
AnalyzeBranch - Analyze the branching code at the end of MBB, returning true if it cannot be understood (e.g.
it's a switch dispatch or isn't implemented for a target). Upon success, this returns false and returns with the following information in various cases:
Note that removeBranch and insertBranch must be implemented to support cases where this method returns success.
Definition at line 96 of file NVPTXInstrInfo.cpp.
References llvm::MachineBasicBlock::begin(), llvm::MachineBasicBlock::end(), llvm::MachineOperand::getMBB(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), I, and llvm::SmallVectorTemplateBase< T >::push_back().
Referenced by getRegisterInfo().
|
override |
Definition at line 33 of file NVPTXInstrInfo.cpp.
References llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), llvm::getKillRegState(), llvm::MachineBasicBlock::getParent(), llvm::MachineRegisterInfo::getRegClass(), llvm::MachineFunction::getRegInfo(), llvm_unreachable, MRI, and llvm::report_fatal_error().
Referenced by getRegisterInfo().
|
inline |
Definition at line 32 of file NVPTXInstrInfo.h.
References analyzeBranch(), copyPhysReg(), I, insertBranch(), and removeBranch().
Referenced by llvm::NVPTXSubtarget::getRegisterInfo().
|
override |
Definition at line 181 of file NVPTXInstrInfo.cpp.
References llvm::MachineInstrBuilder::addMBB(), llvm::MachineInstrBuilder::addReg(), assert(), llvm::BuildMI(), llvm::ArrayRef< T >::empty(), getReg(), and llvm::ArrayRef< T >::size().
Referenced by getRegisterInfo().
|
override |
Definition at line 155 of file NVPTXInstrInfo.cpp.
References assert(), llvm::MachineBasicBlock::begin(), llvm::MachineBasicBlock::end(), and I.
Referenced by getRegisterInfo().