Otawa
0.10
|
This pseudo-processor allows to call processor based on their name. More...
#include <otawa/proc/DynProcessor.h>
Public Member Functions | |
DynProcessor (cstring name) throw (ProcessorNotFound) | |
Find the processor whose name is given. More... | |
~DynProcessor (void) | |
string | name (void) const |
Get the name of the processor. More... | |
Version | version (void) const |
Get the version of the processor. More... | |
void | configure (const PropList &props) |
Configure the processor. More... | |
void | process (WorkSpace *ws, const PropList &props=PropList::EMPTY) |
Process the given workspace on the processor. More... | |
Private Attributes | |
Processor * | proc |
This pseudo-processor allows to call processor based on their name.
It is useful when one does not want or does not can't to include the requested processor. For example, it may be useful when the processor is contained in a plugin. In this case, the plugin will be automatically plugged and used.
otawa::DynProcessor::~DynProcessor | ( | void | ) |
References proc.
|
inline |
Configure the processor.
props | Configuration to pass to the processor. |
References otawa::Processor::configure(), and proc.
|
inline |
Get the name of the processor.
References otawa::Processor::name(), and proc.
void otawa::DynProcessor::process | ( | WorkSpace * | ws, |
const PropList & | props = PropList::EMPTY |
||
) |
Process the given workspace on the processor.
ws | Workspace to work on. |
props | Configuration properties. |
References proc, and otawa::Processor::process().
Referenced by otawa::script::Script::work().
|
inline |
Get the version of the processor.
References proc, and otawa::Processor::version().
|
private |
Referenced by configure(), name(), process(), version(), and ~DynProcessor().