|
LLVM
4.0.0
|
#include <NVPTXInstrInfo.h>
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 136 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, isPodLike< T >::value >::push_back().
|
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::TargetRegisterClass::getSize(), llvm_unreachable, MRI, and llvm::report_fatal_error().
|
inline |
Definition at line 71 of file NVPTXInstrInfo.h.
References llvm::MachineOperand::getImm(), and llvm::MachineInstr::getOperand().
Referenced by isLoadInstr(), and isStoreInstr().
|
inline |
Definition at line 32 of file NVPTXInstrInfo.h.
Referenced by llvm::NVPTXSubtarget::getRegisterInfo().
|
override |
Definition at line 221 of file NVPTXInstrInfo.cpp.
References llvm::MachineInstrBuilder::addMBB(), llvm::MachineInstrBuilder::addReg(), assert(), llvm::BuildMI(), llvm::ArrayRef< T >::empty(), getReg(), and llvm::ArrayRef< T >::size().
| bool NVPTXInstrInfo::isLoadInstr | ( | const MachineInstr & | MI, |
| unsigned & | AddrSpace | ||
| ) | const |
Definition at line 91 of file NVPTXInstrInfo.cpp.
References llvm::MachineInstr::getDesc(), getLdStCodeAddrSpace(), llvm::NVPTX::isLoadMask, llvm::NVPTX::isLoadShift, and llvm::MCInstrDesc::TSFlags.
|
virtual |
Definition at line 68 of file NVPTXInstrInfo.cpp.
References assert(), llvm::MachineInstr::getDesc(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::getReg(), llvm::MachineOperand::isReg(), llvm::NVPTX::SimpleMoveMask, llvm::NVPTX::SimpleMoveShift, and llvm::MCInstrDesc::TSFlags.
| bool NVPTXInstrInfo::isStoreInstr | ( | const MachineInstr & | MI, |
| unsigned & | AddrSpace | ||
| ) | const |
Definition at line 102 of file NVPTXInstrInfo.cpp.
References llvm::MachineInstr::getDesc(), getLdStCodeAddrSpace(), llvm::NVPTX::isStoreMask, llvm::NVPTX::isStoreShift, and llvm::MCInstrDesc::TSFlags.
|
override |
Definition at line 195 of file NVPTXInstrInfo.cpp.
References assert(), llvm::MachineBasicBlock::begin(), llvm::MachineBasicBlock::end(), and I.
1.8.6