Otawa
0.10
|
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) |
BasicBlock * | header (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] |
This class can be used to express the penalties due to the instruction cache.
|
inline |
References _header, _penalty, HIT_MISS, MISS, MISS_MISS, otawa::BasicBlock::number(), and x_HIT.
Referenced by otawa::GraphBBTime< G >::analyzePathContext().
|
inline |
References _header.
Referenced by otawa::GraphBBTime< G >::analyzePathContext(), and otawa::ipet::CachePenaltiesObjectFunctionBuilder::processBB().
|
inline |
References _penalty, and otawa::type().
Referenced by otawa::GraphBBTime< G >::analyzePathContext(), and otawa::ipet::CachePenaltiesObjectFunctionBuilder::processBB().
|
inline |
References _header, and otawa::cfgio::bb().
Referenced by otawa::GraphBBTime< G >::analyzePathContext().
|
inline |
References _penalty, and otawa::type().
Referenced by otawa::GraphBBTime< G >::analyzePathContext().
|
private |
Referenced by CachePenalty(), dump(), header(), and setHeader().
|
private |
Referenced by CachePenalty(), dump(), penalty(), and setPenalty().