OpenASIP
2.0
|
#include <BFUnscheduleMove.hh>
Public Member Functions | |
BFUnscheduleMove (BF2Scheduler &sched, MoveNode &mn) | |
void | unscheduleOriginal () |
void | undoOnlyMe () |
bool | operator() () |
Public Member Functions inherited from BFOptimization | |
BFOptimization (BF2Scheduler &sched) | |
virtual bool | isFinishFront () |
virtual void | mightBeReady (MoveNode &mn) |
Public Member Functions inherited from Reversible | |
virtual void | undo () |
virtual | ~Reversible () |
void | deleteChildren (std::stack< Reversible * > &children) |
int | id () |
Reversible () | |
Protected Member Functions | |
void | returnOriginal () |
Protected Member Functions inherited from BFOptimization | |
DataDependenceGraph & | ddg () |
DataDependenceGraph * | rootDDG () |
const DataDependenceGraph & | ddg () const |
DataDependenceGraph * | prologDDG () |
SimpleResourceManager & | rm () const |
SimpleResourceManager * | prologRM () const |
BUMoveNodeSelector & | selector () |
const TTAMachine::Machine & | targetMachine () const |
unsigned int | ii () const |
MoveNodeDuplicator & | duplicator () const |
virtual bool | assign (int cycle, MoveNode &, const TTAMachine::Bus *bus=nullptr, const TTAMachine::FunctionUnit *srcFU_=nullptr, const TTAMachine::FunctionUnit *dstFU=nullptr, const TTAMachine::Bus *prologBus=nullptr, int immWriteCycle=-1, int prologImmWriteCycle=-1, const TTAMachine::ImmediateUnit *immu=nullptr, int immRegIndex=-1, bool ignoreGuardWriteCycle=false) |
virtual void | unassign (MoveNode &mn, bool disposePrologCopy=true) |
virtual int | rmEC (int cycle, MoveNode &mn, const TTAMachine::Bus *bus=nullptr, const TTAMachine::FunctionUnit *srcFU=nullptr, const TTAMachine::FunctionUnit *dstFU=nullptr, const TTAMachine::Bus *prologBus=nullptr, int immWriteCycle=-1, int prologImmWriteCycle=-1, const TTAMachine::ImmediateUnit *immu=nullptr, int immRegIndex=-1) |
virtual int | rmLC (int cycle, MoveNode &mn, const TTAMachine::Bus *bus=nullptr, const TTAMachine::FunctionUnit *srcFU=nullptr, const TTAMachine::FunctionUnit *dstFU=nullptr, const TTAMachine::Bus *prologBus=nullptr, int immWriteCycle=-1, int prologImmWriteCycle=-1, const TTAMachine::ImmediateUnit *immu=nullptr, int immRegIndex=-1) |
virtual bool | canAssign (int cycle, MoveNode &mn, const TTAMachine::Bus *bus=nullptr, const TTAMachine::FunctionUnit *srcFU=nullptr, const TTAMachine::FunctionUnit *dstFU=nullptr, const TTAMachine::Bus *prologBus=nullptr, int immWriteCycle=-1, int prologImmWriteCycle=-1, const TTAMachine::ImmediateUnit *immu=nullptr, int immRegIndex=-1, bool ignoreGWN=false) |
bool | putAlsoToPrologEpilog (int cycle, MoveNode &mn) |
void | setPrologSrcFUAnno (MoveNode &prologMN, MoveNode &loopMN) |
void | setPrologDstFUAnno (MoveNode &prologMN, MoveNode &loopMN) |
void | setJumpGuard (MoveNode &mn) |
void | unsetJumpGuard (MoveNode &mn) |
bool | needJumpGuard (const MoveNode &mn, int cycle) |
int | jumpGuardAvailableCycle (const MoveNode &mn) |
bool | canBeSpeculated (const Operation &op) |
bool | canBeSpeculated (const MoveNode &mn) |
bool | usePrologMove (const MoveNode &mn) |
bool | canBeScheduled (const MoveNode &mn) |
const TTAMachine::RegisterFile * | RFReadPortCountPreventsScheduling (const MoveNode &mn) |
bool | immCountPreventsScheduling (const MoveNode &mn) |
Protected Member Functions inherited from Reversible | |
bool | runPreChild (Reversible *preChild) |
bool | runPostChild (Reversible *preChild) |
bool | runChild (std::stack< Reversible * > &children, Reversible *child) |
bool | runChild (Reversible *child, bool pre) |
void | undoAndRemovePreChildren () |
void | undoAndRemovePostChildren () |
void | undoAndRemoveChildren (std::stack< Reversible * > &children) |
Protected Attributes | |
MoveNode & | mn_ |
int | oldCycle_ |
const TTAMachine::Bus * | oldBus_ |
const TTAMachine::Bus * | prologBus_ |
int | oldImmWriteCycle_ |
int | prologImmWriteCycle_ |
const TTAMachine::FunctionUnit * | dstFU_ |
const TTAMachine::FunctionUnit * | srcFU_ |
const TTAMachine::ImmediateUnit * | immu_ |
int | immRegIndex_ |
Protected Attributes inherited from BFOptimization | |
BF2Scheduler & | sched_ |
Protected Attributes inherited from Reversible | |
std::stack< Reversible * > | preChildren_ |
std::stack< Reversible * > | postChildren_ |
Static Protected Attributes | |
static int | recurseCounter_ = 0 |
Static Protected Attributes inherited from BFOptimization | |
static std::map< MoveNode *, MoveNode *, MoveNode::Comparator > | prologMoves_ |
Additional Inherited Members | |
Static Public Member Functions inherited from BFOptimization | |
static void | clearPrologMoves () |
static MoveNode * | getSisterTrigger (const MoveNode &mn, const TTAMachine::Machine &mach) |
Definition at line 48 of file BFUnscheduleMove.hh.
|
inline |
|
virtual |
This performs the operation. Returns true if success, false if fail.
Implements Reversible.
Definition at line 152 of file BFUnscheduleMove.cc.
References unscheduleOriginal().
|
protected |
Definition at line 107 of file BFUnscheduleMove.cc.
References assert, BFOptimization::assign(), TTAProgram::Move::bus(), BFOptimization::canAssign(), BFOptimization::ddg(), MoveNode::destinationOperation(), POMDisassembler::disassemble(), dstFU_, TTAProgram::Instruction::immediateCount(), immRegIndex_, immu_, SimpleResourceManager::instruction(), MoveNode::isDestinationOperation(), MoveNode::isSourceOperation(), mn_, TTAProgram::Instruction::move(), MoveNode::move(), TTAProgram::Instruction::moveCount(), TTAMachine::Component::name(), oldBus_, oldCycle_, oldImmWriteCycle_, prologBus_, prologImmWriteCycle_, recurseCounter_, BFOptimization::rm(), MoveNode::sourceOperation(), srcFU_, MoveNode::toString(), ProgramOperation::toString(), and GraphBase< GraphNode, GraphEdge >::writeToDotFile().
Referenced by BFPushMoveUp::operator()(), BFPushMoveUp2::operator()(), BFRescheduleMove::undoOnlyMe(), and undoOnlyMe().
|
virtual |
Undoes the operations done by this class but not children. This method should be overloaded by most derived classes.
Reimplemented from Reversible.
Definition at line 144 of file BFUnscheduleMove.cc.
References returnOriginal().
void BFUnscheduleMove::unscheduleOriginal | ( | ) |
Definition at line 47 of file BFUnscheduleMove.cc.
References assert, TTAProgram::Move::bus(), BFOptimization::canAssign(), MoveNode::cycle(), BFOptimization::ddg(), TTAProgram::Move::destination(), MoveNode::destinationOperation(), dstFU_, BFOptimization::duplicator(), TTAProgram::Terminal::functionUnit(), MoveNodeDuplicator::getMoveNode(), BFOptimization::ii(), TTAProgram::Terminal::immediateUnit(), SimpleResourceManager::immediateWriteCycle(), immRegIndex_, immu_, TTAProgram::Terminal::index(), MoveNode::isDestinationOperation(), TTAProgram::Terminal::isImmediateRegister(), MoveNode::isSourceOperation(), mn_, MoveNode::move(), TTAMachine::Component::name(), oldBus_, oldCycle_, oldImmWriteCycle_, prologBus_, prologImmWriteCycle_, BFOptimization::prologRM(), recurseCounter_, BFOptimization::rm(), TTAProgram::Move::source(), MoveNode::sourceOperation(), srcFU_, MoveNode::toString(), ProgramOperation::toString(), BFOptimization::unassign(), and GraphBase< GraphNode, GraphEdge >::writeToDotFile().
Referenced by BFPushMoveUp::operator()(), BFPushAntidepDown::operator()(), BFPushMoveUp2::operator()(), and operator()().
|
protected |
Definition at line 67 of file BFUnscheduleMove.hh.
Referenced by returnOriginal(), and unscheduleOriginal().
|
protected |
Definition at line 70 of file BFUnscheduleMove.hh.
Referenced by returnOriginal(), and unscheduleOriginal().
|
protected |
Definition at line 69 of file BFUnscheduleMove.hh.
Referenced by returnOriginal(), and unscheduleOriginal().
|
protected |
Definition at line 61 of file BFUnscheduleMove.hh.
Referenced by BFPushMoveUp::operator()(), BFPushAntidepDown::operator()(), BFPushMoveUp2::operator()(), returnOriginal(), BFRescheduleMove::undoOnlyMe(), and unscheduleOriginal().
|
protected |
Definition at line 63 of file BFUnscheduleMove.hh.
Referenced by BFPushAntidepDown::operator()(), returnOriginal(), BFRescheduleMove::undoOnlyMe(), and unscheduleOriginal().
|
protected |
Definition at line 62 of file BFUnscheduleMove.hh.
Referenced by BFPushAntidepDown::operator()(), returnOriginal(), BFRescheduleMove::undoOnlyMe(), and unscheduleOriginal().
|
protected |
Definition at line 65 of file BFUnscheduleMove.hh.
Referenced by BFPushAntidepDown::operator()(), returnOriginal(), and unscheduleOriginal().
|
protected |
Definition at line 64 of file BFUnscheduleMove.hh.
Referenced by BFPushAntidepDown::operator()(), returnOriginal(), and unscheduleOriginal().
|
protected |
Definition at line 66 of file BFUnscheduleMove.hh.
Referenced by BFPushAntidepDown::operator()(), returnOriginal(), and unscheduleOriginal().
|
staticprotected |
Definition at line 71 of file BFUnscheduleMove.hh.
Referenced by BFPushMoveUp::operator()(), returnOriginal(), BFRescheduleMove::undoOnlyMe(), and unscheduleOriginal().
|
protected |
Definition at line 68 of file BFUnscheduleMove.hh.
Referenced by returnOriginal(), and unscheduleOriginal().