class CycleSegment

Declaration

class CycleSegment { /* full declaration omitted */ };

Description

A sequence of cycles. This class can be used as a building block to construct ranges of cycles.

Declared at: llvm/include/llvm/MCA/Instruction.h:389

Member Variables

private unsigned int Begin
private unsigned int End
private bool Reserved

Method Overview

  • public CycleSegment(unsigned int StartCycle, unsigned int EndCycle, bool IsReserved = false)
  • public unsigned int begin() const
  • public bool contains(unsigned int Cycle) const
  • public unsigned int end() const
  • public bool endsBefore(const llvm::mca::CycleSegment & CS) const
  • public bool isExecuted() const
  • public bool isExecuting() const
  • public bool isReserved() const
  • public bool isValid() const
  • public bool overlaps(const llvm::mca::CycleSegment & CS) const
  • public void setEnd(unsigned int NewEnd)
  • public void setReserved()
  • public unsigned int size() const
  • public bool startsAfter(const llvm::mca::CycleSegment & CS) const
  • public void subtract(unsigned int Cycles)

Methods

CycleSegment(unsigned int StartCycle,
             unsigned int EndCycle,
             bool IsReserved = false)

Declared at: llvm/include/llvm/MCA/Instruction.h:395

Parameters

unsigned int StartCycle
unsigned int EndCycle
bool IsReserved = false

unsigned int begin() const

Declared at: llvm/include/llvm/MCA/Instruction.h:424

bool contains(unsigned int Cycle) const

Declared at: llvm/include/llvm/MCA/Instruction.h:398

Parameters

unsigned int Cycle

unsigned int end() const

Declared at: llvm/include/llvm/MCA/Instruction.h:425

bool endsBefore(
    const llvm::mca::CycleSegment& CS) const

Declared at: llvm/include/llvm/MCA/Instruction.h:400

Parameters

const llvm::mca::CycleSegment& CS

bool isExecuted() const

Declared at: llvm/include/llvm/MCA/Instruction.h:405

bool isExecuting() const

Declared at: llvm/include/llvm/MCA/Instruction.h:404

bool isReserved() const

Declared at: llvm/include/llvm/MCA/Instruction.h:427

bool isValid() const

Declared at: llvm/include/llvm/MCA/Instruction.h:417

bool overlaps(
    const llvm::mca::CycleSegment& CS) const

Declared at: llvm/include/llvm/MCA/Instruction.h:401

Parameters

const llvm::mca::CycleSegment& CS

void setEnd(unsigned int NewEnd)

Declared at: llvm/include/llvm/MCA/Instruction.h:426

Parameters

unsigned int NewEnd

void setReserved()

Declared at: llvm/include/llvm/MCA/Instruction.h:428

unsigned int size() const

Declared at: llvm/include/llvm/MCA/Instruction.h:418

bool startsAfter(
    const llvm::mca::CycleSegment& CS) const

Declared at: llvm/include/llvm/MCA/Instruction.h:399

Parameters

const llvm::mca::CycleSegment& CS

void subtract(unsigned int Cycles)

Declared at: llvm/include/llvm/MCA/Instruction.h:419

Parameters

unsigned int Cycles