LLVM
15.0.0git
|
#include "Target/SPIRV/SPIRVInstrInfo.h"
Public Member Functions | |
SPIRVInstrInfo () | |
const SPIRVRegisterInfo & | getRegisterInfo () const |
bool | isHeaderInstr (const MachineInstr &MI) const |
bool | isConstantInstr (const MachineInstr &MI) const |
bool | isTypeDeclInstr (const MachineInstr &MI) const |
bool | isDecorationInstr (const MachineInstr &MI) const |
bool | analyzeBranch (MachineBasicBlock &MBB, MachineBasicBlock *&TBB, MachineBasicBlock *&FBB, SmallVectorImpl< MachineOperand > &Cond, bool AllowModify=false) const override |
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 |
void | copyPhysReg (MachineBasicBlock &MBB, MachineBasicBlock::iterator I, const DebugLoc &DL, MCRegister DestReg, MCRegister SrcReg, bool KillSrc) const override |
Definition at line 24 of file SPIRVInstrInfo.h.
SPIRVInstrInfo::SPIRVInstrInfo | ( | ) |
Definition at line 26 of file SPIRVInstrInfo.cpp.
|
override |
Definition at line 121 of file SPIRVInstrInfo.cpp.
References Cond, llvm::MachineBasicBlock::empty(), llvm::MachineBasicBlock::getLastNonDebugInstr(), MBB, and MI.
|
override |
Definition at line 180 of file SPIRVInstrInfo.cpp.
References assert(), llvm::DstOp::getReg(), llvm::SrcOp::getReg(), I, MRI, and llvm::MachineRegisterInfo::replaceRegWith().
|
inline |
Definition at line 30 of file SPIRVInstrInfo.h.
Referenced by llvm::SPIRVSubtarget::getRegisterInfo().
|
override |
Definition at line 172 of file SPIRVInstrInfo.cpp.
References llvm::report_fatal_error().
bool SPIRVInstrInfo::isConstantInstr | ( | const MachineInstr & | MI | ) | const |
bool SPIRVInstrInfo::isDecorationInstr | ( | const MachineInstr & | MI | ) | const |
bool SPIRVInstrInfo::isHeaderInstr | ( | const MachineInstr & | MI | ) | const |
Definition at line 72 of file SPIRVInstrInfo.cpp.
References isConstantInstr(), isDecorationInstr(), isTypeDeclInstr(), and MI.
bool SPIRVInstrInfo::isTypeDeclInstr | ( | const MachineInstr & | MI | ) | const |
Definition at line 49 of file SPIRVInstrInfo.cpp.
References llvm::TargetRegisterClass::getID(), llvm::MachineRegisterInfo::getRegClassOrNull(), MI, and MRI.
Referenced by isHeaderInstr().
|
override |
Definition at line 153 of file SPIRVInstrInfo.cpp.
References llvm::report_fatal_error().