LLVM 20.0.0git
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 "llvm/CodeGen/LiveInterval.h"

Public Member Functions

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

Public Attributes

SlotIndex start
 
SlotIndex end
 
VNInfovalno = nullptr
 

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 162 of file LiveInterval.h.

Constructor & Destructor Documentation

◆ Segment() [1/2]

llvm::LiveRange::Segment::Segment ( )
default

◆ Segment() [2/2]

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

Definition at line 170 of file LiveInterval.h.

References assert(), and E.

Member Function Documentation

◆ contains()

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

Return true if the index is covered by this segment.

Definition at line 176 of file LiveInterval.h.

References end, I, and start.

◆ containsInterval()

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 181 of file LiveInterval.h.

References assert(), E, end, and start.

◆ dump()

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

Definition at line 994 of file LiveInterval.cpp.

References llvm::dbgs().

◆ operator!=()

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

Definition at line 193 of file LiveInterval.h.

References llvm::Other.

◆ operator<()

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

Definition at line 186 of file LiveInterval.h.

References end, llvm::Other, and start.

◆ operator==()

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

Definition at line 189 of file LiveInterval.h.

References end, llvm::Other, and start.

Member Data Documentation

◆ end

SlotIndex llvm::LiveRange::Segment::end

◆ start

SlotIndex llvm::LiveRange::Segment::start

◆ valno

VNInfo* llvm::LiveRange::Segment::valno = nullptr

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