LLVM
8.0.1
|
A set of live virtual registers and physical register units. More...
#include "llvm/CodeGen/RegisterPressure.h"
Public Member Functions | |
void | clear () |
void | init (const MachineRegisterInfo &MRI) |
LaneBitmask | contains (unsigned Reg) const |
LaneBitmask | insert (RegisterMaskPair Pair) |
Mark the Pair.LaneMask lanes of Pair.Reg as live. More... | |
LaneBitmask | erase (RegisterMaskPair Pair) |
Clears the Pair.LaneMask lanes of Pair.Reg (mark them as dead). More... | |
size_t | size () const |
template<typename ContainerT > | |
void | appendTo (ContainerT &To) const |
A set of live virtual registers and physical register units.
This is a wrapper around a SparseSet which deals with mapping register unit and virtual register indexes to an index usable by the sparse set.
Definition at line 262 of file RegisterPressure.h.
|
inline |
Definition at line 335 of file RegisterPressure.h.
References P.
void LiveRegSet::clear | ( | ) |
Definition at line 218 of file RegisterPressure.cpp.
|
inline |
Definition at line 297 of file RegisterPressure.h.
References llvm::SparseSet< ValueT, KeyFunctorT, SparseT >::end(), llvm::SparseSet< ValueT, KeyFunctorT, SparseT >::find(), llvm::LaneBitmask::getNone(), and I.
Referenced by llvm::createBreakFalseDeps().
|
inline |
Clears the Pair.LaneMask
lanes of Pair.Reg
(mark them as dead).
Returns the previously live lanes of Pair.Reg
.
Definition at line 320 of file RegisterPressure.h.
References llvm::SparseSet< ValueT, KeyFunctorT, SparseT >::end(), llvm::SparseSet< ValueT, KeyFunctorT, SparseT >::find(), llvm::LaneBitmask::getNone(), I, llvm::RegisterMaskPair::LaneMask, and llvm::RegisterMaskPair::RegUnit.
void LiveRegSet::init | ( | const MachineRegisterInfo & | MRI | ) |
Definition at line 210 of file RegisterPressure.cpp.
References llvm::MCRegisterInfo::getNumRegs(), llvm::MachineRegisterInfo::getNumVirtRegs(), llvm::MachineRegisterInfo::getTargetRegisterInfo(), and TRI.
Referenced by llvm::createBreakFalseDeps().
|
inline |
Mark the Pair.LaneMask
lanes of Pair.Reg
as live.
Returns the previously live lanes of Pair.Reg
.
Definition at line 307 of file RegisterPressure.h.
References llvm::LaneBitmask::getNone(), llvm::SparseSet< ValueT, KeyFunctorT, SparseT >::insert(), llvm::RegisterMaskPair::LaneMask, and llvm::RegisterMaskPair::RegUnit.
|
inline |
Definition at line 330 of file RegisterPressure.h.
References llvm::SparseSet< ValueT, KeyFunctorT, SparseT >::size().