OpenASIP
2.0
|
#include <BFPushAntidepDown.hh>
Public Member Functions | |
BFPushAntidepDown (BF2Scheduler &sched, MoveNode &adepDest, int latency, int newLC) | |
bool | operator() () |
![]() | |
BFRescheduleMove (BF2Scheduler &sched, MoveNode &mn) | |
void | undoOnlyMe () |
![]() | |
BFUnscheduleMove (BF2Scheduler &sched, MoveNode &mn) | |
void | unscheduleOriginal () |
void | undoOnlyMe () |
bool | operator() () |
![]() | |
BFOptimization (BF2Scheduler &sched) | |
virtual bool | isFinishFront () |
virtual void | mightBeReady (MoveNode &mn) |
![]() | |
virtual void | undo () |
virtual | ~Reversible () |
void | deleteChildren (std::stack< Reversible * > &children) |
int | id () |
Reversible () | |
Private Attributes | |
int | lat_ |
int | newLC_ |
Additional Inherited Members | |
![]() | |
static void | clearPrologMoves () |
static MoveNode * | getSisterTrigger (const MoveNode &mn, const TTAMachine::Machine &mach) |
![]() | |
void | returnOriginal () |
![]() | |
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) |
![]() | |
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) |
![]() | |
std::stack< Reversible * > | midChildren_ |
![]() | |
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_ |
![]() | |
BF2Scheduler & | sched_ |
![]() | |
std::stack< Reversible * > | preChildren_ |
std::stack< Reversible * > | postChildren_ |
![]() | |
static int | recurseCounter_ = 0 |
![]() | |
static std::map< MoveNode *, MoveNode *, MoveNode::Comparator > | prologMoves_ |
Definition at line 48 of file BFPushAntidepDown.hh.
|
inline |
Definition at line 50 of file BFPushAntidepDown.hh.
|
virtual |
This performs the operation. Returns true if success, false if fail.
Implements Reversible.
Definition at line 52 of file BFPushAntidepDown.cc.
References assert, BFOptimization::assign(), TTAProgram::Move::bus(), BFOptimization::canAssign(), BFOptimization::ddg(), DataDependenceGraph::earliestCycle(), BF2Scheduler::guardWriteNode(), TTAProgram::Move::isControlFlowMove(), lat_, DataDependenceGraph::latestCycle(), BF2Scheduler::maximumAllowedCycle(), BFUnscheduleMove::mn_, MoveNode::move(), TTAMachine::Component::name(), newLC_, BFUnscheduleMove::oldBus_, BFUnscheduleMove::oldCycle_, BFUnscheduleMove::oldImmWriteCycle_, BFUnscheduleMove::prologBus_, BFUnscheduleMove::prologImmWriteCycle_, BFOptimization::rmEC(), BFOptimization::rmLC(), BFOptimization::sched_, MoveNode::toString(), and BFUnscheduleMove::unscheduleOriginal().
|
private |
Definition at line 56 of file BFPushAntidepDown.hh.
Referenced by operator()().
|
private |
Definition at line 57 of file BFPushAntidepDown.hh.
Referenced by operator()().