LLVM
13.0.0git

This class represents the number of cycles per resource (fractions of cycles). More...
#include "llvm/MCA/Support.h"
Public Member Functions  
ResourceCycles ()  
ResourceCycles (unsigned Cycles, unsigned ResourceUnits=1)  
operator double () const  
unsigned  getNumerator () const 
unsigned  getDenominator () const 
ResourceCycles &  operator+= (const ResourceCycles &RHS) 
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 castoperator 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.

inline 

inline 

inline 

inline 
ResourceCycles & llvm::mca::ResourceCycles::operator+=  (  const ResourceCycles &  RHS  ) 
Definition at line 23 of file Support.cpp.
References llvm::GreatestCommonDivisor64().