OpenASIP
2.0
|
#include <BFScheduleExact.hh>
Public Member Functions | |
BFScheduleExact (BF2Scheduler &sched, MoveNode &mn, int c, bool allowRegCopy=true, const TTAMachine::FunctionUnit *srcFU=nullptr) | |
virtual bool | operator() () |
virtual void | undoOnlyMe () |
![]() | |
BFScheduleMove (BF2Scheduler &sched, MoveNode &mn) | |
![]() | |
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 | |
bool | allowRegCopy_ |
int | c_ |
TTAProgram::Move * | jumpLimitMove_ |
int | oldJumpLimit_ |
int | oldJumpLimitWidth_ |
bool | createdCopy_ |
const TTAMachine::FunctionUnit * | srcFU_ |
Additional Inherited Members | |
![]() | |
static void | clearPrologMoves () |
static MoveNode * | getSisterTrigger (const MoveNode &mn, const TTAMachine::Machine &mach) |
![]() | |
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) |
![]() | |
MoveNode & | mn_ |
bool | createdPrologMove_ |
![]() | |
BF2Scheduler & | sched_ |
![]() | |
std::stack< Reversible * > | preChildren_ |
std::stack< Reversible * > | postChildren_ |
![]() | |
static std::map< MoveNode *, MoveNode *, MoveNode::Comparator > | prologMoves_ |
Definition at line 47 of file BFScheduleExact.hh.
|
inline |
Definition at line 50 of file BFScheduleExact.hh.
|
virtual |
This performs the operation. Returns true if success, false if fail.
Implements Reversible.
Definition at line 53 of file BFScheduleExact.cc.
References allowRegCopy_, BFOptimization::assign(), c_, BFOptimization::canAssign(), BFOptimization::canBeScheduled(), createdCopy_, BFOptimization::ddg(), DataDependenceGraph::earliestCycle(), BFRegCopy::getRegCopy(), TTAProgram::MoveGuard::guard(), TTAProgram::Move::guard(), BFOptimization::ii(), MoveNode::isSourceOperation(), TTAProgram::Move::isUnconditional(), DataDependenceGraph::latestCycle(), BFScheduleMove::mn_, MoveNode::move(), TTAMachine::Guard::parentBus(), Reversible::runPostChild(), Reversible::runPreChild(), BFOptimization::sched_, srcFU_, MoveNode::toString(), Reversible::undo(), and Reversible::undoAndRemovePreChildren().
|
virtual |
Undoes the operations done by this class but not children. This method should be overloaded by most derived classes.
Reimplemented from BFScheduleMove.
Definition at line 110 of file BFScheduleExact.cc.
References createdCopy_, jumpLimitMove_, BFScheduleMove::mn_, oldJumpLimit_, oldJumpLimitWidth_, TTAProgram::Move::setSource(), and BFOptimization::unassign().
|
private |
Definition at line 61 of file BFScheduleExact.hh.
Referenced by operator()().
|
private |
Definition at line 62 of file BFScheduleExact.hh.
Referenced by operator()().
|
private |
Definition at line 66 of file BFScheduleExact.hh.
Referenced by operator()(), and undoOnlyMe().
|
private |
Definition at line 63 of file BFScheduleExact.hh.
Referenced by undoOnlyMe().
|
private |
Definition at line 64 of file BFScheduleExact.hh.
Referenced by undoOnlyMe().
|
private |
Definition at line 65 of file BFScheduleExact.hh.
Referenced by undoOnlyMe().
|
private |
Definition at line 67 of file BFScheduleExact.hh.
Referenced by operator()().