LLVM  4.0.0
Public Member Functions | Public Attributes | List of all members
llvm::LiveRange::Segment Struct Reference

This represents a simple continuous liveness interval for a value. More...

#include <LiveInterval.h>

Collaboration diagram for llvm::LiveRange::Segment:
[legend]

Public Member Functions

 Segment ()
 
 Segment (SlotIndex S, SlotIndex E, VNInfo *V)
 
bool contains (SlotIndex I) const
 Return true if the index is covered by this segment. More...
 
bool containsInterval (SlotIndex S, SlotIndex E) const
 Return true if the given interval, [S, E), is covered by this segment. More...
 
bool operator< (const Segment &Other) const
 
bool operator== (const Segment &Other) const
 
void dump () const
 

Public Attributes

SlotIndex start
 
SlotIndex end
 
VNInfovalno
 

Detailed Description

This represents a simple continuous liveness interval for a value.

The start point is inclusive, the end point exclusive. These intervals are rendered as [start,end).

Definition at line 159 of file LiveInterval.h.

Constructor & Destructor Documentation

llvm::LiveRange::Segment::Segment ( )
inline

Definition at line 164 of file LiveInterval.h.

llvm::LiveRange::Segment::Segment ( SlotIndex  S,
SlotIndex  E,
VNInfo V 
)
inline

Definition at line 166 of file LiveInterval.h.

References assert().

Member Function Documentation

bool llvm::LiveRange::Segment::contains ( SlotIndex  I) const
inline

Return true if the index is covered by this segment.

Definition at line 172 of file LiveInterval.h.

References end, and start.

bool llvm::LiveRange::Segment::containsInterval ( SlotIndex  S,
SlotIndex  E 
) const
inline

Return true if the given interval, [S, E), is covered by this segment.

Definition at line 177 of file LiveInterval.h.

References assert(), end, and start.

LLVM_DUMP_METHOD void LiveRange::Segment::dump ( ) const

Definition at line 902 of file LiveInterval.cpp.

References llvm::dbgs().

bool llvm::LiveRange::Segment::operator< ( const Segment Other) const
inline

Definition at line 182 of file LiveInterval.h.

References end, and start.

bool llvm::LiveRange::Segment::operator== ( const Segment Other) const
inline

Definition at line 185 of file LiveInterval.h.

References end, and start.

Member Data Documentation

SlotIndex llvm::LiveRange::Segment::end
SlotIndex llvm::LiveRange::Segment::start
VNInfo* llvm::LiveRange::Segment::valno

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