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)
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
unsigned int begin() const
Declared at: llvm/include/llvm/MCA/Instruction.h:325
¶bool contains(unsigned int Cycle) const
bool contains(unsigned int Cycle) const
Declared at: llvm/include/llvm/MCA/Instruction.h:299
Parameters
- unsigned int Cycle
¶unsigned int end() const
unsigned int end() const
Declared at: llvm/include/llvm/MCA/Instruction.h:326
¶bool endsBefore(
const llvm::mca::CycleSegment& CS) const
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
bool isExecuted() const
Declared at: llvm/include/llvm/MCA/Instruction.h:306
¶bool isExecuting() const
bool isExecuting() const
Declared at: llvm/include/llvm/MCA/Instruction.h:305
¶bool isReserved() const
bool isReserved() const
Declared at: llvm/include/llvm/MCA/Instruction.h:328
¶bool isValid() const
bool isValid() const
Declared at: llvm/include/llvm/MCA/Instruction.h:318
¶bool overlaps(
const llvm::mca::CycleSegment& CS) const
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)
void setEnd(unsigned int NewEnd)
Declared at: llvm/include/llvm/MCA/Instruction.h:327
Parameters
- unsigned int NewEnd
¶void setReserved()
void setReserved()
Declared at: llvm/include/llvm/MCA/Instruction.h:329
¶unsigned int size() const
unsigned int size() const
Declared at: llvm/include/llvm/MCA/Instruction.h:319
¶bool startsAfter(
const llvm::mca::CycleSegment& CS) const
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)
void subtract(unsigned int Cycles)
Declared at: llvm/include/llvm/MCA/Instruction.h:320
Parameters
- unsigned int Cycles