summaryrefslogtreecommitdiffstats
path: root/usr.bin/clang/tblgen/tblgen.1
blob: d6d127e58f9374acc5872c3e36319363d2985d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
.\" $FreeBSD$
.TH "TBLGEN" "1" "2012-08-16" "3.2" "LLVM"
.SH NAME
tblgen \- Target Description To C++ Code Generator
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.\" Man page generated from reStructuredText.
.
.SH SYNOPSIS
.sp
\fBtblgen\fP [\fIoptions\fP] [\fIfilename\fP]
.SH DESCRIPTION
.sp
\fBtblgen\fP translates from target description (.td) files into C++ code that can
be included in the definition of an LLVM target library. Most users of LLVM will
not need to use this program. It is only for assisting with writing an LLVM
target backend.
.sp
The input and output of \fBtblgen\fP is beyond the scope of this short
introduction. Please see the \fICodeGeneration\fP page in the LLVM documentation.
.sp
The \fIfilename\fP argument specifies the name of a Target Description (.td) file
to read as input.
.SH OPTIONS
.sp
\fB\-help\fP
.INDENT 0.0
.INDENT 3.5
Print a summary of command line options.
.UNINDENT
.UNINDENT
.sp
\fB\-o\fP \fIfilename\fP
.INDENT 0.0
.INDENT 3.5
Specify the output file name.  If \fIfilename\fP is \fB\-\fP, then \fBtblgen\fP
sends its output to standard output.
.UNINDENT
.UNINDENT
.sp
\fB\-I\fP \fIdirectory\fP
.INDENT 0.0
.INDENT 3.5
Specify where to find other target description files for inclusion. The
\fIdirectory\fP value should be a full or partial path to a directory that contains
target description files.
.UNINDENT
.UNINDENT
.sp
\fB\-asmparsernum\fP \fIN\fP
.INDENT 0.0
.INDENT 3.5
Make \-gen\-asm\-parser emit assembly writer number \fIN\fP.
.UNINDENT
.UNINDENT
.sp
\fB\-asmwriternum\fP \fIN\fP
.INDENT 0.0
.INDENT 3.5
Make \-gen\-asm\-writer emit assembly writer number \fIN\fP.
.UNINDENT
.UNINDENT
.sp
\fB\-class\fP \fIclass Name\fP
.INDENT 0.0
.INDENT 3.5
Print the enumeration list for this class.
.UNINDENT
.UNINDENT
.sp
\fB\-print\-records\fP
.INDENT 0.0
.INDENT 3.5
Print all records to standard output (default).
.UNINDENT
.UNINDENT
.sp
\fB\-print\-enums\fP
.INDENT 0.0
.INDENT 3.5
Print enumeration values for a class.
.UNINDENT
.UNINDENT
.sp
\fB\-print\-sets\fP
.INDENT 0.0
.INDENT 3.5
Print expanded sets for testing DAG exprs.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-emitter\fP
.INDENT 0.0
.INDENT 3.5
Generate machine code emitter.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-register\-info\fP
.INDENT 0.0
.INDENT 3.5
Generate registers and register classes info.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-instr\-info\fP
.INDENT 0.0
.INDENT 3.5
Generate instruction descriptions.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-asm\-writer\fP
.INDENT 0.0
.INDENT 3.5
Generate the assembly writer.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-disassembler\fP
.INDENT 0.0
.INDENT 3.5
Generate disassembler.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-pseudo\-lowering\fP
.INDENT 0.0
.INDENT 3.5
Generate pseudo instruction lowering.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-dag\-isel\fP
.INDENT 0.0
.INDENT 3.5
Generate a DAG (Directed Acycle Graph) instruction selector.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-asm\-matcher\fP
.INDENT 0.0
.INDENT 3.5
Generate assembly instruction matcher.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-dfa\-packetizer\fP
.INDENT 0.0
.INDENT 3.5
Generate DFA Packetizer for VLIW targets.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-fast\-isel\fP
.INDENT 0.0
.INDENT 3.5
Generate a "fast" instruction selector.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-subtarget\fP
.INDENT 0.0
.INDENT 3.5
Generate subtarget enumerations.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-intrinsic\fP
.INDENT 0.0
.INDENT 3.5
Generate intrinsic information.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-tgt\-intrinsic\fP
.INDENT 0.0
.INDENT 3.5
Generate target intrinsic information.
.UNINDENT
.UNINDENT
.sp
\fB\-gen\-enhanced\-disassembly\-info\fP
.INDENT 0.0
.INDENT 3.5
Generate enhanced disassembly info.
.UNINDENT
.UNINDENT
.sp
\fB\-version\fP
.INDENT 0.0
.INDENT 3.5
Show the version number of this program.
.UNINDENT
.UNINDENT
.SH EXIT STATUS
.sp
If \fBtblgen\fP succeeds, it will exit with 0.  Otherwise, if an error
occurs, it will exit with a non\-zero value.
.SH AUTHOR
Maintained by The LLVM Team (http://llvm.org/).
.SH COPYRIGHT
2012, LLVM Project
.\" Generated by docutils manpage writer.
.
OpenPOWER on IntegriCloud