OpenASIP
2.0
src
base
osal
OperationPool.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 OperationPool.hh
26
*
27
* Declaration of OperationPool class.
28
*
29
* @author Jussi Nykänen 2004 (nykanen-no.spam-cs.tut.fi)
30
* @note This file is used in compiled simulation. Keep dependencies *clean*
31
* @note rating: yellow
32
* @note reviewed 19 August 2004 by pj, jn, ao, ac
33
*/
34
35
#ifndef TTA_OPERATION_POOL_HH
36
#define TTA_OPERATION_POOL_HH
37
38
class
OperationBehaviorLoader
;
39
class
OperationBehaviorProxy
;
40
class
OperationIndex
;
41
class
Operation
;
42
class
OperationPoolPimpl
;
43
44
namespace
llvm
{
45
class
MCInstrInfo;
46
}
47
48
/**
49
* OperationPool provides interface for obtaining operations of the target
50
* architecture template.
51
*/
52
class
OperationPool
{
53
public
:
54
OperationPool
();
55
virtual
~OperationPool
();
56
57
Operation
&
operation
(
const
char
* name);
58
OperationIndex
&
index
();
59
bool
sharesState
(
const
Operation
& op);
60
61
static
void
cleanupCache
();
62
63
static
void
setLLVMTargetInstrInfo
(
const
llvm::MCInstrInfo* tid);
64
private
:
65
/// Copying not allowed.
66
OperationPool
(
const
OperationPool
&);
67
/// Assignment not allowed.
68
OperationPool
&
operator=
(
const
OperationPool
&);
69
70
/// Private implementation in a separate source file.
71
OperationPoolPimpl
*
pimpl_
;
72
};
73
74
#endif
OperationPool::OperationPool
OperationPool()
Definition:
OperationPool.cc:64
llvm
Definition:
InlineAsmParser.hh:49
OperationPool::operation
Operation & operation(const char *name)
Definition:
OperationPool.cc:99
OperationPool::index
OperationIndex & index()
Definition:
OperationPool.cc:109
OperationPool::~OperationPool
virtual ~OperationPool()
Definition:
OperationPool.cc:72
OperationPool::setLLVMTargetInstrInfo
static void setLLVMTargetInstrInfo(const llvm::MCInstrInfo *tid)
Definition:
OperationPool.cc:132
OperationPool::cleanupCache
static void cleanupCache()
Definition:
OperationPool.cc:84
OperationBehaviorProxy
Definition:
OperationBehaviorProxy.hh:58
OperationPool::sharesState
bool sharesState(const Operation &op)
Definition:
OperationPool.cc:123
OperationPoolPimpl
Definition:
OperationPoolPimpl.hh:53
OperationBehaviorLoader
Definition:
OperationBehaviorLoader.hh:54
Operation
Definition:
Operation.hh:59
OperationPool::operator=
OperationPool & operator=(const OperationPool &)
Assignment not allowed.
OperationPool::pimpl_
OperationPoolPimpl * pimpl_
Private implementation in a separate source file.
Definition:
OperationPool.hh:71
OperationIndex
Definition:
OperationIndex.hh:58
OperationPool
Definition:
OperationPool.hh:52
Generated by
1.8.17