Otawa
0.10
|
A melted bank may contains registers with different sizes and kinds. More...
#include <otawa/hard/Register.h>
Public Member Functions | |
MeltedBank (elm::CString name,...) | |
Build a melted bank with the registers passed in the variable list arguments (ended by null). More... | |
~MeltedBank (void) | |
elm::CString | name (void) const |
Get the name of the bank. More... | |
Register::kind_t | kind (void) const |
Get the kind of registers in the bank. More... | |
int | size (void) const |
Get the size, in bits, of the registers in the bank. More... | |
int | count (void) const |
Get the count of register in the bank. More... | |
Register * | get (int index) const |
Get a register from the bank. More... | |
Register * | operator[] (int index) const |
Short to RegBank::get(). More... | |
const elm::genstruct::Table < Register * > & | registers () const |
Protected Member Functions | |
void | set (int index, Register *reg) |
Protected Attributes | |
elm::CString | _name |
Register::kind_t | _kind |
int | _size |
elm::genstruct::AllocatedTable < Register * > | _regs |
A melted bank may contains registers with different sizes and kinds.
It is useful for grouping state registers.
otawa::hard::MeltedBank::MeltedBank | ( | elm::CString | name, |
... | |||
) |
Build a melted bank with the registers passed in the variable list arguments (ended by null).
name | Name of the bank. |
... | List of registers in the bank. |
References otawa::hard::RegBank::_regs, and otawa::hard::RegBank::set().
otawa::hard::MeltedBank::~MeltedBank | ( | void | ) |
|
inlineinherited |
Get the count of register in the bank.
References otawa::hard::RegBank::_regs.
Referenced by otawa::hard::PlainBank::PlainBank(), and otawa::ResourceList::ResourceList().
|
inlineinherited |
Get a register from the bank.
number | Number of the register to get. |
References otawa::hard::RegBank::_regs.
|
inlineinherited |
Get the kind of registers in the bank.
References otawa::hard::RegBank::_kind.
Referenced by otawa::hard::PlainBank::PlainBank().
|
inlineinherited |
Get the name of the bank.
References otawa::hard::RegBank::_name.
Referenced by otawa::ResourceList::ResourceList().
|
inlineinherited |
Short to RegBank::get().
|
inlineinherited |
References otawa::hard::RegBank::_regs.
|
inlineprotectedinherited |
References otawa::hard::Register::_bank, otawa::hard::Register::_number, and otawa::hard::RegBank::_regs.
Referenced by MeltedBank(), and otawa::hard::PlainBank::PlainBank().
|
inlineinherited |
Get the size, in bits, of the registers in the bank.
References otawa::hard::RegBank::_size.
Referenced by otawa::hard::PlainBank::PlainBank().
|
protectedinherited |
Referenced by otawa::hard::RegBank::kind().
|
protectedinherited |
Referenced by otawa::hard::RegBank::name().
|
protectedinherited |
|
protectedinherited |
Referenced by otawa::hard::RegBank::size().