Otawa
0.10
|
This class represents a bank of registers. More...
#include <otawa/hard/Register.h>
Public Member Functions | |
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 | |
RegBank (elm::CString name, Register::kind_t kind, int size) | |
Buil a new register bank. More... | |
RegBank (elm::CString name, Register::kind_t kind, int size, int count) | |
Buil a new register bank. More... | |
~RegBank (void) | |
void | set (int index, Register *reg) |
Protected Attributes | |
elm::CString | _name |
Register::kind_t | _kind |
int | _size |
elm::genstruct::AllocatedTable < Register * > | _regs |
Friends | |
class | Register |
This class represents a bank of registers.
|
protected |
Buil a new register bank.
name | Name of the bank. |
kind | Kind of register (may be NONE for melted bank). |
size | Size in bits of the register (may be -1 for melted bank). |
|
protected |
Buil a new register bank.
name | Name of the bank. |
kind | Kind of register (may be NONE for melted bank). |
size | Size in bits of the register (may be -1 for melted bank). |
count | Count of registers. |
|
inlineprotected |
|
inline |
Get the count of register in the bank.
References _regs.
Referenced by otawa::hard::PlainBank::PlainBank(), and otawa::ResourceList::ResourceList().
|
inline |
|
inline |
Get the kind of registers in the bank.
References _kind.
Referenced by otawa::hard::PlainBank::PlainBank().
|
inline |
Get the name of the bank.
References _name.
Referenced by otawa::ResourceList::ResourceList().
|
inline |
Short to RegBank::get().
|
inline |
References _regs.
|
inlineprotected |
References otawa::hard::Register::_bank, otawa::hard::Register::_number, and _regs.
Referenced by otawa::hard::MeltedBank::MeltedBank(), and otawa::hard::PlainBank::PlainBank().
|
inline |
Get the size, in bits, of the registers in the bank.
References _size.
Referenced by otawa::hard::PlainBank::PlainBank().
|
friend |
Referenced by otawa::hard::PlainBank::PlainBank().
|
protected |
Referenced by kind().
|
protected |
Referenced by name().
|
protected |
Referenced by count(), get(), otawa::hard::MeltedBank::MeltedBank(), registers(), set(), and otawa::hard::PlainBank::~PlainBank().
|
protected |
Referenced by size().