LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
codegen.hxx
Go to the documentation of this file.
1
6
#ifndef TARGET_CODEGEN_HXX
7
# define TARGET_CODEGEN_HXX
8
9
# include <
target/codegen.hh
>
10
11
namespace
target
12
{
13
14
// Construct a Codegen.
15
inline
16
Codegen::Codegen
(
bool
rule_trace_p)
17
: frame_(nullptr)
18
, rule_trace_p_(rule_trace_p)
19
{
20
}
21
22
inline
23
frame::Frame
&
24
Codegen::frame_get
()
25
{
26
return
*
frame_
;
27
}
28
29
inline
30
assem::Instrs
&
31
Codegen::instrs_get
()
32
{
33
return
instrs_
;
34
}
35
36
inline
37
void
38
Codegen::emit
(
assem::Instr
* instr)
39
{
40
instrs_
.push_back(instr);
41
}
42
43
inline
44
void
45
Codegen::emit
(
assem::Instrs
instrs)
46
{
47
instrs_
.splice(
instrs_
.end(), instrs);
48
}
49
50
}
// namespace target
51
52
#endif // !TARGET_CODEGEN_HXX
target
codegen.hxx
Generated on Wed Mar 5 2014 15:47:37 for LRDE Tiger Compiler by
1.8.1.2