OpenASIP
2.0
src
applibs
LLVMBackend
LLVMPOMBuilder.cc
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 LLVMPOMBuilder.cc
26
*
27
* Implementation of LLVMPOMBuilder class.
28
*
29
* @author Pekka Jääskeläinen 2010
30
* @note reting: red
31
*/
32
33
#include "
LLVMPOMBuilder.hh
"
34
35
namespace
llvm
{
36
37
char
LLVMPOMBuilder::ID
= 0;
38
39
LLVMPOMBuilder::LLVMPOMBuilder
(
40
TCETargetMachine
& tm,
41
TTAMachine::Machine
* mach) :
42
LLVMTCEBuilder
(tm, mach, ID) {
43
}
44
45
LLVMPOMBuilder::LLVMPOMBuilder
(
char
& ID) :
LLVMTCEBuilder
(ID) {
46
}
47
48
bool
49
LLVMPOMBuilder::doFinalization
(Module& m) {
50
51
LLVMTCEBuilder::doFinalization
(m);
52
return
false
;
53
}
54
55
FunctionPass*
56
createLLVMPOMBuilderPass
(
57
TCETargetMachine
& tm,
TTAMachine::Machine
* mach) {
58
return
new
LLVMPOMBuilder
(tm, mach);
59
}
60
61
}
62
llvm
Definition:
InlineAsmParser.hh:49
llvm::LLVMTCEBuilder::doFinalization
bool doFinalization(Module &M)
Definition:
LLVMTCEBuilder.cc:1090
llvm::LLVMPOMBuilder::doFinalization
bool doFinalization(Module &m)
Definition:
LLVMPOMBuilder.cc:49
llvm::LLVMPOMBuilder
Definition:
LLVMPOMBuilder.hh:62
LLVMPOMBuilder.hh
llvm::LLVMPOMBuilder::LLVMPOMBuilder
LLVMPOMBuilder(char &ID)
Definition:
LLVMPOMBuilder.cc:45
llvm::createLLVMPOMBuilderPass
FunctionPass * createLLVMPOMBuilderPass(TCETargetMachine &tm, TTAMachine::Machine *mach)
Definition:
LLVMPOMBuilder.cc:56
llvm::LLVMPOMBuilder::ID
static char ID
Definition:
LLVMPOMBuilder.hh:64
llvm::TCETargetMachine
Definition:
TCETargetMachine.hh:106
llvm::LLVMTCEBuilder
Definition:
LLVMTCEBuilder.hh:102
TTAMachine::Machine
Definition:
Machine.hh:73
Generated by
1.8.17