Otawa  0.10
otawa::RegResource Class Reference

#include <otawa/parexegraph/Resource.h>

Inheritance diagram for otawa::RegResource:
otawa::Resource

Classes

class  UsingInstIterator
 

Public Types

enum  resource_type_t {
  BLOCK_START, STAGE, QUEUE, REG,
  EXTERNAL_CONFLICT, INTERNAL_CONFLICT, RES_TYPE_NUM
}
 
typedef struct
otawa::Resource::input_t 
input_t
 

Public Member Functions

 RegResource (elm::String name, otawa::hard::RegBank *reg_bank, int reg_index, int index)
 
 ~RegResource ()
 
otawa::hard::RegBankregBank ()
 
int regIndex ()
 
void addUsingInst (ParExeInst *inst)
 
elm::String name ()
 
resource_type_t type ()
 
int index ()
 
void setIndex (int index)
 

Private Attributes

elm::genstruct::Vector
< ParExeInst * > 
_using_instructions
 
otawa::hard::RegBank_reg_bank
 
int _reg_index
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
BLOCK_START 
STAGE 
QUEUE 
REG 
EXTERNAL_CONFLICT 
INTERNAL_CONFLICT 
RES_TYPE_NUM 

Constructor & Destructor Documentation

otawa::RegResource::RegResource ( elm::String  name,
otawa::hard::RegBank reg_bank,
int  reg_index,
int  index 
)
inline
otawa::RegResource::~RegResource ( )
inline

References _using_instructions.

Member Function Documentation

void otawa::RegResource::addUsingInst ( ParExeInst inst)
inline
index Resource::index ( void  )
inlineinherited
Returns
Index of the resource (i.e. its rank in the list of resources related to a ParExeGraph).

References otawa::Resource::_index.

Referenced by otawa::ParExeGraph::clearDelays(), otawa::ParExeGraph::delta(), otawa::ParExeGraph::propagate(), otawa::QueueResource::QueueResource(), and otawa::Resource::setIndex().

elm::String Resource::name ( void  )
inlineinherited
Returns
Name of the resource.

References otawa::Resource::_name.

otawa::hard::RegBank* otawa::RegResource::regBank ( )
inline

References _reg_bank.

int otawa::RegResource::regIndex ( )
inline

References _reg_index.

void otawa::Resource::setIndex ( int  index)
inlineinherited
resource_type_t Resource::type ( void  )
inlineinherited
Returns
Type of the resource.

References otawa::Resource::_type.

Referenced by otawa::ParExeGraph::delta().

Member Data Documentation

otawa::hard::RegBank* otawa::RegResource::_reg_bank
private

Referenced by regBank().

int otawa::RegResource::_reg_index
private

Referenced by regIndex().

elm::genstruct::Vector<ParExeInst *> otawa::RegResource::_using_instructions
private

Referenced by addUsingInst(), and ~RegResource().


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