Otawa
0.10
|
A block collections stores the list of data blocks used in a task for a specific line. More...
#include <otawa/dcache/features.h>
Public Member Functions | |
~BlockCollection (void) | |
const Block & | operator[] (int i) const |
const Block & | obtain (const Address &addr) |
Obtain a block matching the given address. More... | |
void | setSet (int set) |
Set the set number of the block collection. More... | |
int | count (void) const |
Get the count of blocks in this collection. More... | |
int | cacheSet (void) const |
Private Attributes | |
int | _set |
genstruct::Vector< Block * > | blocks |
A block collections stores the list of data blocks used in a task for a specific line.
otawa::dcache::BlockCollection::~BlockCollection | ( | void | ) |
References blocks.
|
inline |
|
inline |
Get the count of blocks in this collection.
References blocks.
Referenced by otawa::dcache::CATBuilder::processLBlockSet(), otawa::dcache::ACSMayBuilder::processLBlockSet(), otawa::dcache::ACSBuilder::processLBlockSet(), and otawa::dcache::DirtyManager::update().
Obtain a block matching the given address.
addr | Address of the looked block. |
References _set, otawa::ot::address(), blocks, and otawa::Address::isNull().
Referenced by otawa::dcache::CLPBlockBuilder::processBB(), and otawa::dcache::BlockBuilder::processBB().
|
inline |
|
private |
Referenced by cacheSet(), obtain(), and setSet().
|
private |
Referenced by count(), obtain(), operator[](), and ~BlockCollection().