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