LLVM API Documentation
Public Member Functions | |
RegisterOperands (const TargetRegisterInfo *tri, const MachineRegisterInfo *mri, bool ID=false) | |
void | collect (const MachineOperand &MO) |
Push this operand's register onto the correct vector. | |
Public Attributes | |
SmallVector< unsigned, 8 > | Uses |
SmallVector< unsigned, 8 > | Defs |
SmallVector< unsigned, 8 > | DeadDefs |
Protected Member Functions | |
void | pushRegUnits (unsigned Reg, SmallVectorImpl< unsigned > &RegUnits) |
Collect this instruction's unique uses and defs into SmallVectors for processing defs and uses in order.
FIXME: always ignore tied opers
Definition at line 312 of file RegisterPressure.cpp.
RegisterOperands::RegisterOperands | ( | const TargetRegisterInfo * | tri, |
const MachineRegisterInfo * | mri, | ||
bool | ID = false |
||
) | [inline] |
Definition at line 322 of file RegisterPressure.cpp.
void RegisterOperands::collect | ( | const MachineOperand & | MO | ) | [inline] |
Push this operand's register onto the correct vector.
Definition at line 327 of file RegisterPressure.cpp.
References llvm::MachineOperand::getReg(), llvm::MachineOperand::isDead(), llvm::MachineOperand::isDef(), llvm::MachineOperand::isReg(), and llvm::MachineOperand::readsReg().
Referenced by collectOperands().
void RegisterOperands::pushRegUnits | ( | unsigned | Reg, |
SmallVectorImpl< unsigned > & | RegUnits | ||
) | [inline, protected] |
Definition at line 343 of file RegisterPressure.cpp.
References containsReg(), llvm::MCRegisterInfo::DiffListIterator::isValid(), llvm::TargetRegisterInfo::isVirtualRegister(), and llvm::SmallVectorTemplateBase< T, isPodLike >::push_back().
Definition at line 320 of file RegisterPressure.cpp.
Referenced by llvm::RegPressureTracker::advance(), collectOperands(), and llvm::RegPressureTracker::recede().
Definition at line 319 of file RegisterPressure.cpp.
Referenced by llvm::RegPressureTracker::advance(), collectOperands(), collectPDiff(), and llvm::RegPressureTracker::recede().
Definition at line 318 of file RegisterPressure.cpp.
Referenced by llvm::RegPressureTracker::advance(), collectPDiff(), and llvm::RegPressureTracker::recede().