22 #ifndef OTAWA_CACHE_LBLOCK_H
23 #define OTAWA_CACHE_LBLOCK_H
25 #include <elm/string.h>
26 #include <elm/genstruct/SLList.h>
27 #include <elm/genstruct/HashTable.h>
28 #include <elm/inhstruct/DLList.h>
29 #include <elm/PreIterator.h>
59 inline int id(
void) {
return idx; }
75 #endif // OTAWA_CACHE_LBLOCK_H
struct otawa::sem::inst inst
void set(T *target, int size, const T &v)
Address address(void) const
Definition: LBlock.h:48
int idx
Definition: LBlock.h:68
int countInsts(void)
Count the instructions in the l-block.
Definition: cache_LBlock.cpp:78
Inst * instruction(void) const
Definition: LBlock.h:55
int id(void)
Definition: LBlock.h:59
elm::io::Output & operator<<(elm::io::Output &out, Address addr)
Definition: base.cpp:188
LBlockSet * lblockset(void) const
Definition: LBlock.h:52
ot::size size(void) const
Get the size of the current l-block.
Definition: LBlock.h:50
Inst * _inst
Definition: LBlock.h:65
t::uint32 size
Definition: base.h:46
BasicBlock * bb(void) const
Definition: LBlock.h:49
The l-block is an abstraction allowing to split the basic block according to the bound of the cache b...
Definition: LBlock.h:43
The representation of an address in OTAWA.
Definition: base.h:54
t::uint32 _size
Definition: LBlock.h:66
virtual address_t address(void) const =0
Get the address of the item .
sys::SystemOutStream & out
This class represents the list of l-blocks of a task for a chosen cache row.
Definition: LBlockSet.h:38
int cacheblock(void) const
Definition: LBlock.h:60
BasicBlock * _bb
Definition: LBlock.h:67
int number(void) const
Get the number of the LBlock in its cache row.
Definition: LBlock.h:58
This is the minimal definition of a basic block.
Definition: BasicBlock.h:43
This class represents assembly instruction of a piece of code.
Definition: Inst.h:62
This a list of properties.
Definition: PropList.h:63
~LBlock(void)
Definition: cache_LBlock.cpp:62
LBlock(LBlockSet *set, BasicBlock *bb, Inst *inst, t::uint32 size, int cache_index)
Build a new LBlock.
Definition: cache_LBlock.cpp:47
int cid
Definition: LBlock.h:68
int index(void) const
Definition: LBlock.h:47
int cacheBlock(void) const
Compute the cache block of this L-block.
Definition: LBlock.h:54
LBlockSet * lbs
Definition: LBlock.h:64