LLVM: llvm::mca::ReleaseAtCycles Class Reference (original) (raw)

This class represents the number of cycles per resource (fractions of cycles). More...

#include "[llvm/MCA/Support.h](llvm%5F2MCA%5F2Support%5F8h%5Fsource.html)"

Public Member Functions
ReleaseAtCycles ()
ReleaseAtCycles (unsigned Cycles, unsigned ResourceUnits=1)
operator double () const
unsigned getNumerator () const
unsigned getDenominator () const
LLVM_ABI ReleaseAtCycles & operator+= (const ReleaseAtCycles &RHS)

Detailed Description

This class represents the number of cycles per resource (fractions of cycles).

That quantity is managed here as a ratio, and accessed via the double cast-operator below. The two quantities, number of cycles and number of resources, are kept separate. This is used by the ResourcePressureView to calculate the average resource cycles per instruction/iteration.

Definition at line 52 of file Support.h.

Constructor & Destructor Documentation

llvm::mca::ReleaseAtCycles::ReleaseAtCycles ( ) inline

ReleaseAtCycles() [2/2]

llvm::mca::ReleaseAtCycles::ReleaseAtCycles ( unsigned Cycles, unsigned ResourceUnits = 1 ) inline

Member Function Documentation

getDenominator()

unsigned llvm::mca::ReleaseAtCycles::getDenominator ( ) const inline

getNumerator()

unsigned llvm::mca::ReleaseAtCycles::getNumerator ( ) const inline

operator double()

llvm::mca::ReleaseAtCycles::operator double ( ) const inline

operator+=()


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