LLVM API Documentation

Public Types | Public Member Functions | Public Attributes
llvm::LiveInterval Class Reference

#include <LiveInterval.h>

Inheritance diagram for llvm::LiveInterval:
Inheritance graph
[legend]
Collaboration diagram for llvm::LiveInterval:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

LiveInterval - This class represents the liveness of a register, or stack slot.

Definition at line 528 of file LiveInterval.h.


Member Typedef Documentation

Definition at line 530 of file LiveInterval.h.


Constructor & Destructor Documentation

llvm::LiveInterval::LiveInterval ( unsigned  Reg,
float  Weight 
) [inline]

Definition at line 535 of file LiveInterval.h.


Member Function Documentation

void LiveInterval::dump ( ) const

Reimplemented from llvm::LiveRange.

Definition at line 630 of file LiveInterval.cpp.

References llvm::dbgs().

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().

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().

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<<().


Member Data Documentation


The documentation for this class was generated from the following files: