OpenASIP  2.0
MoveNodeGroupBuilder.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2011 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 MoveNodeGroupBuilder.hh
26  *
27  * Declaration of MoveNodeGroupBuilder class
28  *
29  * @author Pekka Jääskeläinen 2010-2011
30  * @note rating: red
31  */
32 
33 #ifndef TTA_MOVE_NODE_GROUP_BUILDER_HH
34 #define TTA_MOVE_NODE_GROUP_BUILDER_HH
35 
36 #include <list>
37 
38 class ProgramOperation;
39 class MoveNodeGroup;
40 
41 namespace TTAProgram {
42  class BasicBlock;
43 }
44 
45 /**
46  * Builds a list of MoveNodeGroups (MNG) from the input basic block.
47  *
48  * Also builds MoveNodes and ProgramOperations and ensures the produced
49  * MNG list is in the input sequential order and that each MNG contains
50  * either one MoveNode or a set of MoveNodes consisting a ProgramOperation.
51  */
53 public:
54  typedef std::list<MoveNodeGroup*> MoveNodeGroupList;
55 
57  virtual ~MoveNodeGroupBuilder() {}
58 
60 
61 private:
62 
63  typedef std::list<ProgramOperation*> ProgramOperationList;
65 };
66 
67 #endif
TTAProgram
Definition: Estimator.hh:65
MoveNodeGroupBuilder
Definition: MoveNodeGroupBuilder.hh:52
MoveNodeGroupBuilder::programOperations_
ProgramOperationList programOperations_
Definition: MoveNodeGroupBuilder.hh:64
MoveNodeGroupBuilder::MoveNodeGroupBuilder
MoveNodeGroupBuilder()
Definition: MoveNodeGroupBuilder.hh:56
ProgramOperation
Definition: ProgramOperation.hh:70
MoveNodeGroupBuilder::build
MoveNodeGroupList * build(TTAProgram::BasicBlock &bb)
Definition: MoveNodeGroupBuilder.cc:57
MoveNodeGroupBuilder::ProgramOperationList
std::list< ProgramOperation * > ProgramOperationList
Definition: MoveNodeGroupBuilder.hh:63
TTAProgram::BasicBlock
Definition: BasicBlock.hh:85
MoveNodeGroupBuilder::~MoveNodeGroupBuilder
virtual ~MoveNodeGroupBuilder()
Definition: MoveNodeGroupBuilder.hh:57
MoveNodeGroup
Definition: MoveNodeGroup.hh:48
MoveNodeGroupBuilder::MoveNodeGroupList
std::list< MoveNodeGroup * > MoveNodeGroupList
Definition: MoveNodeGroupBuilder.hh:54