Otawa  0.10
otawa::CachePenalty Class Reference

This class can be used to express the penalties due to the instruction cache. More...

#include <otawa/cache/cat2/CachePenalty.h>

Public Types

enum  cache_penalty_type_t { MISS, MISS_MISS, HIT_MISS, x_HIT }
 

Public Member Functions

 CachePenalty ()
 
void setHeader (int index, BasicBlock *bb)
 
BasicBlockheader (int index)
 
void setPenalty (cache_penalty_type_t type, int value)
 
int penalty (cache_penalty_type_t type)
 
void dump (elm::io::Output &out)
 

Private Attributes

BasicBlock_header [2]
 
int _penalty [4]
 

Detailed Description

This class can be used to express the penalties due to the instruction cache.

Member Enumeration Documentation

Enumerator
MISS 
MISS_MISS 
HIT_MISS 
x_HIT 

Constructor & Destructor Documentation

otawa::CachePenalty::CachePenalty ( )
inline

References _header, and _penalty.

Member Function Documentation

void otawa::CachePenalty::dump ( elm::io::Output out)
inline
BasicBlock* otawa::CachePenalty::header ( int  index)
inline
void otawa::CachePenalty::setHeader ( int  index,
BasicBlock bb 
)
inline
void otawa::CachePenalty::setPenalty ( cache_penalty_type_t  type,
int  value 
)
inline

Member Data Documentation

BasicBlock* otawa::CachePenalty::_header[2]
private

Referenced by CachePenalty(), dump(), header(), and setHeader().

int otawa::CachePenalty::_penalty[4]
private

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