struct LiveRange::Segment

Declaration

struct LiveRange::Segment { /* full declaration omitted */ };

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

Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:161

Member Variables

public llvm::SlotIndex start
public llvm::SlotIndex end
public llvm::VNInfo* valno = nullptr

Method Overview

  • public Segment()
  • public Segment(llvm::SlotIndex S, llvm::SlotIndex E, llvm::VNInfo * V)
  • public bool contains(llvm::SlotIndex I) const
  • public bool containsInterval(llvm::SlotIndex S, llvm::SlotIndex E) const
  • public void dump() const

Methods

Segment()

Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:167

Segment(llvm::SlotIndex S,
        llvm::SlotIndex E,
        llvm::VNInfo* V)

Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:169

Parameters

llvm::SlotIndex S
llvm::SlotIndex E
llvm::VNInfo* V

bool contains(llvm::SlotIndex I) const

Description

Return true if the index is covered by this segment.

Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:175

Parameters

llvm::SlotIndex I

bool containsInterval(llvm::SlotIndex S,
                      llvm::SlotIndex E) const

Description

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

Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:180

Parameters

llvm::SlotIndex S
llvm::SlotIndex E

void dump() const

Declared at: llvm/include/llvm/CodeGen/LiveInterval.h:196