OpenASIP
2.0
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
w
Functions
a
b
c
d
f
g
i
l
m
n
o
p
s
Variables
Typedefs
a
b
c
d
e
f
i
n
p
r
s
t
Enumerations
Enumerator
b
c
f
g
h
i
l
m
o
r
s
t
v
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
i
l
m
n
o
p
r
s
t
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
z
Related Functions
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
i
l
m
n
o
p
r
s
t
v
w
x
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
Typedefs
a
b
c
d
f
i
j
l
m
n
o
p
r
s
t
u
w
Enumerations
Enumerator
Macros
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
base
program
DisassemblyImmediateAssignment.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 DisassemblyImmediateAssignment.hh
26
*
27
* Declaration of DisassemblyImmediateAssignment class.
28
*
29
* @author Veli-Pekka Jääskeläinen 2005 (vjaaskel-no.spam-.cs.tut.fi)
30
* @note rating: red
31
*/
32
33
#ifndef TTA_DISASSEMBLY_IMMEDIATE_ASSIGNMENT_HH
34
#define TTA_DISASSEMBLY_IMMEDIATE_ASSIGNMENT_HH
35
36
#include "
DisassemblyInstructionSlot.hh
"
37
#include "
DisassemblyElement.hh
"
38
#include "
SimValue.hh
"
39
40
/**
41
* Represents piece of long immediate assignment in the disassembler.
42
*
43
* If the long immediate value is given using the constructor with value
44
* parameter, disassembly string displays the value.
45
*/
46
class
DisassemblyImmediateAssignment
:
public
DisassemblyInstructionSlot
{
47
public
:
48
DisassemblyImmediateAssignment
(
49
SimValue
value,
50
bool
sign,
51
DisassemblyElement
* destination);
52
53
virtual
~DisassemblyImmediateAssignment
();
54
virtual
std::string
toString
()
const
;
55
56
private
:
57
/// Coying not allowed.
58
DisassemblyImmediateAssignment
(
const
DisassemblyImmediateAssignment
&);
59
/// Assignment not allowed.
60
DisassemblyImmediateAssignment
&
operator=
(
61
const
DisassemblyImmediateAssignment
&);
62
63
/// Value of the immediate.
64
SimValue
value_
;
65
/// The destination register.
66
DisassemblyElement
*
destination_
;
67
/// True, if the immediate has value set.
68
bool
hasValue_
;
69
/// True, if the imm unit is signed
70
bool
signed_
;
71
};
72
73
#endif
DisassemblyInstructionSlot
Definition:
DisassemblyInstructionSlot.hh:43
DisassemblyImmediateAssignment::value_
SimValue value_
Value of the immediate.
Definition:
DisassemblyImmediateAssignment.hh:64
DisassemblyImmediateAssignment::DisassemblyImmediateAssignment
DisassemblyImmediateAssignment(SimValue value, bool sign, DisassemblyElement *destination)
Definition:
DisassemblyImmediateAssignment.cc:44
DisassemblyElement
Definition:
DisassemblyElement.hh:41
DisassemblyImmediateAssignment
Definition:
DisassemblyImmediateAssignment.hh:46
DisassemblyImmediateAssignment::destination_
DisassemblyElement * destination_
The destination register.
Definition:
DisassemblyImmediateAssignment.hh:66
SimValue
Definition:
SimValue.hh:96
DisassemblyImmediateAssignment::hasValue_
bool hasValue_
True, if the immediate has value set.
Definition:
DisassemblyImmediateAssignment.hh:68
DisassemblyImmediateAssignment::signed_
bool signed_
True, if the imm unit is signed.
Definition:
DisassemblyImmediateAssignment.hh:70
DisassemblyInstructionSlot.hh
DisassemblyElement.hh
DisassemblyImmediateAssignment::toString
virtual std::string toString() const
Definition:
DisassemblyImmediateAssignment.cc:67
SimValue.hh
DisassemblyImmediateAssignment::~DisassemblyImmediateAssignment
virtual ~DisassemblyImmediateAssignment()
Definition:
DisassemblyImmediateAssignment.cc:56
DisassemblyImmediateAssignment::operator=
DisassemblyImmediateAssignment & operator=(const DisassemblyImmediateAssignment &)
Assignment not allowed.
Generated by
1.8.17