LLVM 22.0.0git
|
#include "Target/NVPTX/NVPTXInstrInfo.h"
Public Member Functions | |
NVPTXInstrInfo (const NVPTXSubtarget &STI) | |
const NVPTXRegisterInfo & | getRegisterInfo () const |
void | copyPhysReg (MachineBasicBlock &MBB, MachineBasicBlock::iterator I, const DebugLoc &DL, Register DestReg, Register SrcReg, bool KillSrc, bool RenamableDest=false, bool RenamableSrc=false) 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. | |
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 28 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 84 of file NVPTXInstrInfo.cpp.
References Cond, llvm::MachineOperand::getMBB(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), I, MBB, and TBB.
|
override |
Definition at line 31 of file NVPTXInstrInfo.cpp.
References llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), DL, llvm::get(), llvm::getKillRegState(), I, llvm_unreachable, MBB, MRI, and llvm::report_fatal_error().
|
inline |
Definition at line 32 of file NVPTXInstrInfo.h.
|
override |
Definition at line 169 of file NVPTXInstrInfo.cpp.
References llvm::MachineInstrBuilder::add(), llvm::MachineInstrBuilder::addMBB(), assert(), llvm::BuildMI(), Cond, DL, llvm::get(), MBB, and TBB.
|
override |
Definition at line 143 of file NVPTXInstrInfo.cpp.