OpenASIP  2.0
LLVMTCEDataDependenceGraphBuilder.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2010 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 LLVMTCEDataDependenceGraphBuilder.hh
26  *
27  * Declaration of LLVMTCE data dependence graph builder class.
28  *
29  * @author Pekka Jääskeläinen 2010 (pjaaskel)
30  * @note rating: red
31  */
32 
33 #ifndef TTA_LLVMTCE_DDG_BUILDER_HH
34 #define TTA_LLVMTCE_DDG_BUILDER_HH
35 
37 
38 namespace TTAProgram {
39  class BasicBlock;
40 }
41 
42 /**
43  * LLVMTCEDataDependenceGraphBuilder class is repsonsible for building data
44  * dependence graphs with assistance from LLVM internal representation data.
45  *
46  * Currently used to produce DDGs from the prebypassed sequential code
47  * input from the TTA-like LLVM backend.
48  */
51 public:
55 
57  ControlFlowGraph& cGraph, const UniversalMachine* um = NULL);
58 
60  TTAProgram::BasicBlock& bb, const UniversalMachine* um = NULL);
61 
62 private:
64 };
65 
66 #endif
TTAProgram
Definition: Estimator.hh:65
LLVMTCEDataDependenceGraphBuilder::buildFromBB
virtual DataDependenceGraph * buildFromBB(TTAProgram::BasicBlock &bb, const UniversalMachine *um=NULL)
Definition: LLVMTCEDataDependenceGraphBuilder.cc:54
LLVMTCEDataDependenceGraphBuilder::buildLocalDDG
void buildLocalDDG(TTAProgram::BasicBlock &bb)
Definition: LLVMTCEDataDependenceGraphBuilder.cc:62
LLVMTCEDataDependenceGraphBuilder::LLVMTCEDataDependenceGraphBuilder
LLVMTCEDataDependenceGraphBuilder(InterPassData &ipd)
Definition: LLVMTCEDataDependenceGraphBuilder.hh:52
DataDependenceGraphBuilder.hh
UniversalMachine
Definition: UniversalMachine.hh:56
LLVMTCEDataDependenceGraphBuilder::~LLVMTCEDataDependenceGraphBuilder
virtual ~LLVMTCEDataDependenceGraphBuilder()
Definition: LLVMTCEDataDependenceGraphBuilder.hh:54
InterPassData
Definition: InterPassData.hh:48
LLVMTCEDataDependenceGraphBuilder::buildFromCFG
virtual DataDependenceGraph * buildFromCFG(ControlFlowGraph &cGraph, const UniversalMachine *um=NULL)
Definition: LLVMTCEDataDependenceGraphBuilder.cc:38
TTAProgram::BasicBlock
Definition: BasicBlock.hh:85
DataDependenceGraphBuilder
Definition: DataDependenceGraphBuilder.hh:70
DataDependenceGraph
Definition: DataDependenceGraph.hh:67
LLVMTCEDataDependenceGraphBuilder
Definition: LLVMTCEDataDependenceGraphBuilder.hh:49
ControlFlowGraph
Definition: ControlFlowGraph.hh:100