OpenASIP
2.0
src
applibs
Scheduler
ProgramRepresentations
DDG
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
36
#include "
DataDependenceGraphBuilder.hh
"
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
*/
49
class
LLVMTCEDataDependenceGraphBuilder
:
50
public
DataDependenceGraphBuilder
{
51
public
:
52
LLVMTCEDataDependenceGraphBuilder
(
InterPassData
& ipd) :
53
DataDependenceGraphBuilder
(ipd) {}
54
virtual
~LLVMTCEDataDependenceGraphBuilder
() {}
55
56
virtual
DataDependenceGraph
*
buildFromCFG
(
57
ControlFlowGraph
& cGraph,
const
UniversalMachine
* um = NULL);
58
59
virtual
DataDependenceGraph
*
buildFromBB
(
60
TTAProgram::BasicBlock
& bb,
const
UniversalMachine
* um = NULL);
61
62
private
:
63
void
buildLocalDDG
(
TTAProgram::BasicBlock
& bb);
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
Generated by
1.8.17