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