OTAWA  2.0
Framework to perform machine analysis and compute WCET.
otawa::cache::LBlockSet Class Reference

#include <otawa/cache/LBlockSet.h>

Classes

class  Iterator
 

Public Member Functions

int add (LBlock *node)
 Add a new l-block. More...
 
const hard::Cachecache (void) const
 
int cacheBlockCount (void)
 
int count (void)
 Get a number for a new l-block in the set. More...
 
LBlocklblock (int i)
 
 LBlockSet (int row, const hard::Cache *cache)
 Build a l-block set. More...
 
int line (void)
 
int set (void)
 

Private Attributes

const hard::Cache_cache
 
int cblock_count
 
int linenumber
 
elm::Vector< LBlock * > listelbc
 

Friends

class CCGDFA
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LBlockSet()

otawa::cache::LBlockSet::LBlockSet ( int  line,
const hard::Cache cache 
)

Build a l-block set.

Parameters
lineCache row of the l-block set.

References line().

Member Function Documentation

◆ add()

int otawa::cache::LBlockSet::add ( LBlock lblock)

Add a new l-block.

Parameters
lblockl-block to add.

References otawa::cache::LBlock::cacheBlock(), cblock_count, lblock(), and listelbc.

◆ cache()

const hard::Cache* otawa::cache::LBlockSet::cache ( void  ) const
inline

◆ cacheBlockCount()

int otawa::cache::LBlockSet::cacheBlockCount ( void  )
inline

◆ count()

int otawa::cache::LBlockSet::count ( void  )
inline

◆ lblock()

LBlock * otawa::cache::LBlockSet::lblock ( int  i)
inline

Get the l-block with the given index.

Parameters
iIndex of the looked block.
Returns
L-block matching the index.

Referenced by add(), and otawa::cat::CATBuilder::setCATEGORISATION().

◆ line()

◆ set()

int otawa::cache::LBlockSet::set ( void  )
inline

Get the set number of the l-blocks in the cache.

Returns
Cache set number.

Friends And Related Function Documentation

◆ CCGDFA

friend class CCGDFA
friend

Member Data Documentation

◆ _cache

const hard::Cache* otawa::cache::LBlockSet::_cache
private

◆ cblock_count

int otawa::cache::LBlockSet::cblock_count
private

Referenced by add().

◆ linenumber

int otawa::cache::LBlockSet::linenumber
private

◆ listelbc

elm::Vector<LBlock *> otawa::cache::LBlockSet::listelbc
private

Referenced by add().


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