OpenASIP  2.0
SequentialMoveNodeSelector.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2009 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file SequentialMoveNodeSelector.hh
26  *
27  * Declaration of SequentialModeNodeSelector class.
28  *
29  * @author Heikki Kultala 2008 (hkultala-no.spam-cs.tut.fi)
30  * @note rating: red
31  */
32 
33 #ifndef TTA_SEQUENTIAL_MOVE_NODE_SELECTOR_HH
34 #define TTA_SEQUENTIAL_MOVE_NODE_SELECTOR_HH
35 
36 #include <list>
37 
38 #include "MoveNodeSelector.hh"
39 
40 namespace TTAProgram {
41  class BasicBlock;
42 }
43 
44 /**
45  * Selects move nodes from a basic block in their sequential input order.
46  */
48 public:
50 
52 
53  virtual MoveNodeGroup candidates();
54  virtual void notifyScheduled(MoveNode& node);
55 
56  void mightBeReady(MoveNode& node);
57 private:
59 
60  typedef std::list<ProgramOperation*> ProgramOperationList;
61  typedef std::list<MoveNodeGroup*> MNGList;
62 
64  // returns the movenodegroups in order.
65  // thiskeep track where we are going.
66  MNGList::iterator mngIter_;
67 };
68 
69 #endif
TTAProgram
Definition: Estimator.hh:65
SequentialMoveNodeSelector::mngs_
MNGList * mngs_
Definition: SequentialMoveNodeSelector.hh:63
SequentialMoveNodeSelector::candidates
virtual MoveNodeGroup candidates()
Definition: SequentialMoveNodeSelector.cc:85
MoveNode
Definition: MoveNode.hh:65
SequentialMoveNodeSelector::createMoveNodes
void createMoveNodes(TTAProgram::BasicBlock &bb)
SequentialMoveNodeSelector::mightBeReady
void mightBeReady(MoveNode &node)
Definition: SequentialMoveNodeSelector.cc:96
SequentialMoveNodeSelector::mngIter_
MNGList::iterator mngIter_
Definition: SequentialMoveNodeSelector.hh:66
SequentialMoveNodeSelector::MNGList
std::list< MoveNodeGroup * > MNGList
Definition: SequentialMoveNodeSelector.hh:61
SequentialMoveNodeSelector::~SequentialMoveNodeSelector
virtual ~SequentialMoveNodeSelector()
Definition: SequentialMoveNodeSelector.cc:65
MoveNodeSelector.hh
SequentialMoveNodeSelector::notifyScheduled
virtual void notifyScheduled(MoveNode &node)
Definition: SequentialMoveNodeSelector.cc:100
SequentialMoveNodeSelector::SequentialMoveNodeSelector
SequentialMoveNodeSelector(TTAProgram::BasicBlock &bb)
Definition: SequentialMoveNodeSelector.cc:58
MoveNodeSelector
Definition: MoveNodeSelector.hh:45
TTAProgram::BasicBlock
Definition: BasicBlock.hh:85
MoveNodeGroup
Definition: MoveNodeGroup.hh:48
SequentialMoveNodeSelector
Definition: SequentialMoveNodeSelector.hh:47
SequentialMoveNodeSelector::ProgramOperationList
std::list< ProgramOperation * > ProgramOperationList
Definition: SequentialMoveNodeSelector.hh:60