LLVM API Documentation
#include <LiveInterval.h>
Public Types | |
typedef LiveRange | super |
Public Member Functions | |
LiveInterval (unsigned Reg, float Weight) | |
unsigned | getSize () const |
bool | isSpillable () const |
isSpillable - Can this interval be spilled? | |
void | markNotSpillable () |
markNotSpillable - Mark interval as not spillable | |
bool | operator< (const LiveInterval &other) const |
void | print (raw_ostream &OS) const |
void | dump () const |
Public Attributes | |
const unsigned | reg |
float | weight |
LiveInterval - This class represents the liveness of a register, or stack slot.
Definition at line 528 of file LiveInterval.h.
typedef LiveRange llvm::LiveInterval::super |
Definition at line 530 of file LiveInterval.h.
llvm::LiveInterval::LiveInterval | ( | unsigned | Reg, |
float | Weight | ||
) | [inline] |
Definition at line 535 of file LiveInterval.h.
void LiveInterval::dump | ( | ) | const |
Reimplemented from llvm::LiveRange.
Definition at line 630 of file LiveInterval.cpp.
References llvm::dbgs().
unsigned LiveInterval::getSize | ( | ) | const |
getSize - Returns the sum of sizes of all the LiveRange's.
Definition at line 573 of file LiveInterval.cpp.
References llvm::LiveRange::begin(), llvm::LiveRange::end(), and I.
Referenced by llvm::VirtRegAuxInfo::calculateSpillWeightAndHint().
bool llvm::LiveInterval::isSpillable | ( | ) | const [inline] |
isSpillable - Can this interval be spilled?
Definition at line 543 of file LiveInterval.h.
References llvm::huge_valf, and weight.
Referenced by llvm::VirtRegAuxInfo::calculateSpillWeightAndHint().
void llvm::LiveInterval::markNotSpillable | ( | ) | [inline] |
markNotSpillable - Mark interval as not spillable
Definition at line 548 of file LiveInterval.h.
References llvm::huge_valf, and weight.
Referenced by llvm::VirtRegAuxInfo::calculateSpillWeightAndHint().
bool llvm::LiveInterval::operator< | ( | const LiveInterval & | other | ) | const [inline] |
Definition at line 552 of file LiveInterval.h.
References llvm::LiveRange::beginIndex(), and reg.
void LiveInterval::print | ( | raw_ostream & | OS | ) | const |
Reimplemented from llvm::LiveRange.
Definition at line 620 of file LiveInterval.cpp.
References llvm::LiveRange::print().
Referenced by llvm::operator<<().
Definition at line 532 of file LiveInterval.h.
Referenced by llvm::RegAllocBase::allocatePhysRegs(), llvm::LiveRegMatrix::assign(), llvm::LiveRangeEdit::calculateRegClassAndHint(), llvm::VirtRegAuxInfo::calculateSpillWeightAndHint(), llvm::LiveRegMatrix::checkRegMaskInterference(), llvm::LiveRegMatrix::checkRegUnitInterference(), llvm::LiveIntervals::computeDeadValues(), llvm::LiveRangeCalc::createDeadDefs(), llvm::ConnectedVNInfoEqClasses::Distribute(), llvm::LiveRangeEdit::eliminateDeadDefs(), llvm::LiveRangeCalc::extendToUses(), llvm::LiveRangeEdit::getReg(), llvm::SplitAnalysis::isOriginalEndpoint(), operator<(), llvm::LiveIntervals::shrinkToUses(), and llvm::LiveRegMatrix::unassign().
Definition at line 533 of file LiveInterval.h.
Referenced by llvm::PBQPBuilder::build(), llvm::VirtRegAuxInfo::calculateSpillWeightAndHint(), isSpillable(), markNotSpillable(), and false::IntervalSorter::operator()().