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:290

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:296

Parameters

unsigned int StartCycle
unsigned int EndCycle
bool IsReserved = false

unsigned int begin() const

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

bool contains(unsigned int Cycle) const

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

Parameters

unsigned int Cycle

unsigned int end() const

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

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

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

Parameters

const llvm::mca::CycleSegment& CS

bool isExecuted() const

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

bool isExecuting() const

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

bool isReserved() const

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

bool isValid() const

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

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

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

Parameters

const llvm::mca::CycleSegment& CS

void setEnd(unsigned int NewEnd)

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

Parameters

unsigned int NewEnd

void setReserved()

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

unsigned int size() const

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

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

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

Parameters

const llvm::mca::CycleSegment& CS

void subtract(unsigned int Cycles)

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

Parameters

unsigned int Cycles