OpenASIP
2.0
|
#include <BFShareOperandWithScheduled.hh>
Public Member Functions | |
BFShareOperandWithScheduled (BF2Scheduler &sched, MoveNode &removed, MoveNode &scheduled) | |
virtual bool | operator() () |
virtual | ~BFShareOperandWithScheduled () |
Public Member Functions inherited from BFShareOperand | |
BFShareOperand (BF2Scheduler &sched, MoveNode &removed, MoveNode &shared) | |
virtual | ~BFShareOperand () |
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 | |
virtual void | undoOnlyMe () |
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 | |
int | originalCycle_ |
const TTAMachine::Bus * | originalRemovedBus_ |
const TTAMachine::Bus * | prologBus_ |
int | oldImmWriteCycle_ |
int | prologImmWriteCycle_ |
const TTAMachine::ImmediateUnit * | immu_ |
int | immRegIndex_ |
Protected Attributes inherited from BFShareOperand | |
MoveNode & | removed_ |
MoveNode & | shared_ |
std::vector< ProgramOperationPtr > | ops_ |
std::set< ProgramOperationPtr > | createdPrologPOs_ |
Protected Attributes inherited from BFOptimization | |
BF2Scheduler & | sched_ |
Protected Attributes inherited from Reversible | |
std::stack< Reversible * > | preChildren_ |
std::stack< Reversible * > | postChildren_ |
Additional Inherited Members | |
Static Public Member Functions inherited from BFOptimization | |
static void | clearPrologMoves () |
static MoveNode * | getSisterTrigger (const MoveNode &mn, const TTAMachine::Machine &mach) |
Static Protected Attributes inherited from BFOptimization | |
static std::map< MoveNode *, MoveNode *, MoveNode::Comparator > | prologMoves_ |
Definition at line 44 of file BFShareOperandWithScheduled.hh.
|
inline |
Definition at line 46 of file BFShareOperandWithScheduled.hh.
|
inlinevirtual |
Definition at line 53 of file BFShareOperandWithScheduled.hh.
|
virtual |
This performs the operation. Returns true if success, false if fail.
Reimplemented from BFShareOperand.
Definition at line 48 of file BFShareOperandWithScheduled.cc.
References BFOptimization::assign(), TTAProgram::Move::bus(), MoveNode::cycle(), BFOptimization::ddg(), TTAProgram::Move::destination(), BoostGraph< GraphNode, GraphEdge >::dropNode(), BFOptimization::duplicator(), MoveNodeDuplicator::getMoveNode(), BFOptimization::ii(), TTAProgram::Terminal::immediateUnit(), SimpleResourceManager::immediateWriteCycle(), immRegIndex_, immu_, TTAProgram::Terminal::index(), TTAProgram::Terminal::isImmediateRegister(), MoveNode::move(), TTAMachine::Component::name(), BF2Scheduler::nodeAndCopyKilled(), BF2Scheduler::nodeResurrected(), oldImmWriteCycle_, TTAProgram::Terminal::operationIndex(), originalCycle_, originalRemovedBus_, prologBus_, prologImmWriteCycle_, BFOptimization::prologRM(), BFShareOperand::removed_, BoostGraph< GraphNode, GraphEdge >::restoreNodeFromParent(), BFOptimization::rm(), BFOptimization::sched_, BFShareOperand::shared_, TTAProgram::Move::source(), MoveNode::toString(), and BFOptimization::unassign().
|
protectedvirtual |
Undoes the operations done by this class but not children. This method should be overloaded by most derived classes.
Reimplemented from BFShareOperand.
Definition at line 105 of file BFShareOperandWithScheduled.cc.
References BFOptimization::assign(), BFOptimization::ddg(), immRegIndex_, immu_, BF2Scheduler::nodeResurrected(), oldImmWriteCycle_, originalCycle_, originalRemovedBus_, prologBus_, prologImmWriteCycle_, BFShareOperand::removed_, BoostGraph< GraphNode, GraphEdge >::restoreNodeFromParent(), BFOptimization::sched_, BFShareOperand::shared_, MoveNode::toString(), and BFShareOperand::undoOnlyMe().
|
protected |
Definition at line 63 of file BFShareOperandWithScheduled.hh.
Referenced by operator()(), and undoOnlyMe().
|
protected |
Definition at line 62 of file BFShareOperandWithScheduled.hh.
Referenced by operator()(), and undoOnlyMe().
|
protected |
Definition at line 60 of file BFShareOperandWithScheduled.hh.
Referenced by operator()(), and undoOnlyMe().
|
protected |
Definition at line 56 of file BFShareOperandWithScheduled.hh.
Referenced by operator()(), and undoOnlyMe().
|
protected |
Definition at line 57 of file BFShareOperandWithScheduled.hh.
Referenced by operator()(), and undoOnlyMe().
|
protected |
Definition at line 58 of file BFShareOperandWithScheduled.hh.
Referenced by operator()(), and undoOnlyMe().
|
protected |
Definition at line 61 of file BFShareOperandWithScheduled.hh.
Referenced by operator()(), and undoOnlyMe().