LLVM  10.0.0svn
Public Member Functions | List of all members
llvm::mca::CycleSegment Class Reference

A sequence of cycles. More...

#include "llvm/MCA/Instruction.h"

Public Member Functions

 CycleSegment (unsigned StartCycle, unsigned EndCycle, bool IsReserved=false)
 
bool contains (unsigned Cycle) const
 
bool startsAfter (const CycleSegment &CS) const
 
bool endsBefore (const CycleSegment &CS) const
 
bool overlaps (const CycleSegment &CS) const
 
bool isExecuting () const
 
bool isExecuted () const
 
bool operator< (const CycleSegment &Other) const
 
CycleSegmentoperator-- (void)
 
bool isValid () const
 
unsigned size () const
 
void subtract (unsigned Cycles)
 
unsigned begin () const
 
unsigned end () const
 
void setEnd (unsigned NewEnd)
 
bool isReserved () const
 
void setReserved ()
 

Detailed Description

A sequence of cycles.

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

Definition at line 290 of file Instruction.h.

Constructor & Destructor Documentation

◆ CycleSegment()

llvm::mca::CycleSegment::CycleSegment ( unsigned  StartCycle,
unsigned  EndCycle,
bool  IsReserved = false 
)
inline

Definition at line 296 of file Instruction.h.

Member Function Documentation

◆ begin()

unsigned llvm::mca::CycleSegment::begin ( ) const
inline

Definition at line 325 of file Instruction.h.

Referenced by llvm::mca::ResourceManager::issueInstruction().

◆ contains()

bool llvm::mca::CycleSegment::contains ( unsigned  Cycle) const
inline

Definition at line 299 of file Instruction.h.

◆ end()

unsigned llvm::mca::CycleSegment::end ( ) const
inline

Definition at line 326 of file Instruction.h.

◆ endsBefore()

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

Definition at line 301 of file Instruction.h.

◆ isExecuted()

bool llvm::mca::CycleSegment::isExecuted ( ) const
inline

Definition at line 306 of file Instruction.h.

◆ isExecuting()

bool llvm::mca::CycleSegment::isExecuting ( ) const
inline

Definition at line 305 of file Instruction.h.

◆ isReserved()

bool llvm::mca::CycleSegment::isReserved ( ) const
inline

Definition at line 328 of file Instruction.h.

Referenced by llvm::mca::ResourceUsage::isReserved().

◆ isValid()

bool llvm::mca::CycleSegment::isValid ( ) const
inline

Definition at line 318 of file Instruction.h.

◆ operator--()

CycleSegment& llvm::mca::CycleSegment::operator-- ( void  )
inline

Definition at line 310 of file Instruction.h.

◆ operator<()

bool llvm::mca::CycleSegment::operator< ( const CycleSegment Other) const
inline

Definition at line 307 of file Instruction.h.

◆ overlaps()

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

Definition at line 302 of file Instruction.h.

◆ setEnd()

void llvm::mca::CycleSegment::setEnd ( unsigned  NewEnd)
inline

Definition at line 327 of file Instruction.h.

◆ setReserved()

void llvm::mca::CycleSegment::setReserved ( )
inline

Definition at line 329 of file Instruction.h.

Referenced by llvm::mca::ResourceUsage::setReserved().

◆ size()

unsigned llvm::mca::CycleSegment::size ( ) const
inline

◆ startsAfter()

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

Definition at line 300 of file Instruction.h.

◆ subtract()

void llvm::mca::CycleSegment::subtract ( unsigned  Cycles)
inline

Definition at line 320 of file Instruction.h.

References assert().


The documentation for this class was generated from the following file: