OpenASIP
2.0
|
#include <ProgramPass.hh>
Public Member Functions | |
ProgramPass (InterPassData &data) | |
virtual | ~ProgramPass () |
virtual void | handleProgram (TTAProgram::Program &program, const TTAMachine::Machine &targetMachine) |
Public Member Functions inherited from SchedulerPass | |
SchedulerPass (InterPassData &data) | |
virtual | ~SchedulerPass () |
InterPassData & | interPassData () |
virtual std::string | shortDescription () const =0 |
virtual std::string | longDescription () const |
Static Public Member Functions | |
static void | executeProcedurePass (TTAProgram::Program &program, const TTAMachine::Machine &targetMachine, ProcedurePass &procedurePass) |
Interface for scheduler passes that handle fully-linked programs.
Definition at line 52 of file ProgramPass.hh.
ProgramPass::ProgramPass | ( | InterPassData & | data | ) |
|
virtual |
|
static |
Executes the given procedure pass on each procedure of the given program in the original program order.
A helper function for implementing most simplest types of program passes.
program | The program to handle. |
machine | The target machine if any. (NullMachine::instance() if target machine is irrelevant). |
procedurePass | The procedure pass to execute. |
In | case handling is unsuccesful for any reason (cfg might still get modified). |
Definition at line 72 of file ProgramPass.cc.
References InterPassData::datum(), ProcedurePass::handleProcedure(), InterPassData::hasDatum(), SchedulerPass::interPassData(), Application::logStream(), TTAProgram::Procedure::name(), program, and Application::verboseLevel().
Referenced by SimpleIfConverter::handleProgram(), handleProgram(), PreOptimizer::handleProgram(), and BBSchedulerController::handleProgram().
|
virtual |
Reimplemented in BBSchedulerController, PreOptimizer, and SimpleIfConverter.
Definition at line 147 of file ProgramPass.cc.
References abortWithError, executeProcedurePass(), and program.