LLVM  8.0.1
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 264 of file Instruction.h.

Constructor & Destructor Documentation

◆ CycleSegment()

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

Definition at line 270 of file Instruction.h.

Member Function Documentation

◆ begin()

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

Definition at line 299 of file Instruction.h.

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

◆ contains()

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

Definition at line 273 of file Instruction.h.

◆ end()

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

Definition at line 300 of file Instruction.h.

◆ endsBefore()

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

Definition at line 275 of file Instruction.h.

◆ isExecuted()

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

Definition at line 280 of file Instruction.h.

◆ isExecuting()

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

Definition at line 279 of file Instruction.h.

◆ isReserved()

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

Definition at line 302 of file Instruction.h.

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

◆ isValid()

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

Definition at line 292 of file Instruction.h.

◆ operator--()

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

Definition at line 284 of file Instruction.h.

◆ operator<()

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

Definition at line 281 of file Instruction.h.

◆ overlaps()

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

Definition at line 276 of file Instruction.h.

◆ setEnd()

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

Definition at line 301 of file Instruction.h.

◆ setReserved()

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

Definition at line 303 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 274 of file Instruction.h.

◆ subtract()

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

Definition at line 294 of file Instruction.h.

References assert().


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