Otawa
0.10
|
A plain bank is a register bank whose registers have the same size and the same type. More...
#include <otawa/hard/Register.h>
Public Member Functions | |
PlainBank (elm::CString name, Register::kind_t kind, int size, elm::CString pattern, int count) | |
Buila new plain bank. More... | |
~PlainBank (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 plain bank is a register bank whose registers have the same size and the same type.
It represents the usual integer or floating-point banks.
otawa::hard::PlainBank::PlainBank | ( | elm::CString | name, |
Register::kind_t | kind, | ||
int | size, | ||
elm::CString | pattern, | ||
int | count | ||
) |
Buila new plain bank.
name | Name of the bank. |
kind | Kind of registers in the bank. |
size | Size in bits of registers in the bank. |
pattern | Pattern for naming registers in the bank : d for decimal numbering, a for lower-case alphabetic numbering, A for upper-case alphabetic numbering. |
count | Count of registers. |
References otawa::hard::RegBank::count(), otawa::hard::RegBank::kind(), otawa::hard::RegBank::Register, otawa::hard::RegBank::set(), and otawa::hard::RegBank::size().
otawa::hard::PlainBank::~PlainBank | ( | void | ) |
References otawa::hard::RegBank::_regs.
|
inlineinherited |
Get the count of register in the bank.
References otawa::hard::RegBank::_regs.
Referenced by 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 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 otawa::hard::MeltedBank::MeltedBank(), and PlainBank().
|
inlineinherited |
Get the size, in bits, of the registers in the bank.
References otawa::hard::RegBank::_size.
Referenced by PlainBank().
|
protectedinherited |
Referenced by otawa::hard::RegBank::kind().
|
protectedinherited |
Referenced by otawa::hard::RegBank::name().
|
protectedinherited |
|
protectedinherited |
Referenced by otawa::hard::RegBank::size().