Otawa
0.10
|
This class represents the list of l-blocks of a task for a chosen cache row. More...
#include <otawa/ccg/features.h>
Classes | |
class | Iterator |
Public Member Functions | |
LBlockSet (int row, const hard::Cache *cache) | |
Build a l-block set. More... | |
int | add (LBlock *node) |
Add a new l-block. More... | |
int | count (void) |
Get a number for a new l-block in the set. More... | |
int | cacheBlockCount (void) |
Get the internal counter of l-block number (only used internally). More... | |
LBlock * | lblock (int i) |
Get the l-block with the given index. More... | |
int | set (void) |
Get the set number of the l-blocks in the cache. More... | |
const hard::Cache * | cache (void) const |
int | line (void) |
Private Attributes | |
int | linenumber |
elm::genstruct::Vector< LBlock * > | listelbc |
int | cblock_count |
const hard::Cache * | _cache |
Friends | |
class | CCGDFA |
This class represents the list of l-blocks of a task for a chosen cache row.
It is useful to perform analysis on l-blocks. It is accessible through the property otawa::LBLOCKS.
otawa::ccg::LBlockSet::LBlockSet | ( | int | line, |
const hard::Cache * | cache | ||
) |
Build a l-block set.
line | Cache row of the l-block set. |
int otawa::ccg::LBlockSet::add | ( | LBlock * | lblock | ) |
Add a new l-block.
lblock | l-block to add. |
References otawa::ccg::LBlock::cacheBlock(), cblock_count, and listelbc.
|
inline |
References _cache.
|
inline |
Get the internal counter of l-block number (only used internally).
References listelbc.
Referenced by otawa::ccg::LBlockBuilder::addLBlock().
|
inline |
Get a number for a new l-block in the set.
Used internally to build l-blocks.
Get the count of l-blocks in the set.
References listelbc.
Referenced by otawa::ccg::ConstraintBuilder::addConstraintHeader(), otawa::ccg::ConstraintBuilder::processLBlockSet(), and otawa::ccg::Builder::processLBlockSet().
|
inline |
Get the l-block with the given index.
i | Index of the looked block. |
References listelbc.
Referenced by otawa::ccg::Builder::processLBlockSet().
|
inline |
References linenumber.
Referenced by otawa::ccg::operator<<(), and otawa::ccg::Builder::processLBlockSet().
|
inline |
|
friend |
|
private |
Referenced by cache().
|
private |
Referenced by add().
|
private |
Referenced by add(), cacheBlockCount(), count(), and lblock().