2010-09-27 19:03:18 +00:00
|
|
|
.\" $FreeBSD$
|
2014-02-16 19:44:07 +00:00
|
|
|
.\" Man page generated from reStructuredText.
|
|
|
|
.
|
2016-03-03 23:09:57 +00:00
|
|
|
.TH "TBLGEN" "1" "2016-03-03" "3.8" "LLVM"
|
2012-08-20 18:33:03 +00:00
|
|
|
.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]
|
2010-09-27 19:03:18 +00:00
|
|
|
..
|
2012-08-20 18:33:03 +00:00
|
|
|
.de1 INDENT
|
|
|
|
.\" .rstReportMargin pre:
|
|
|
|
. RS \\$1
|
|
|
|
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
|
|
|
|
. nr rst2man-indent-level +1
|
|
|
|
.\" .rstReportMargin post:
|
2010-09-27 19:03:18 +00:00
|
|
|
..
|
2012-08-20 18:33:03 +00:00
|
|
|
.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
|
2010-09-27 19:03:18 +00:00
|
|
|
..
|
2012-08-20 18:33:03 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.sp
|
|
|
|
\fBtblgen\fP [\fIoptions\fP] [\fIfilename\fP]
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.sp
|
2014-02-16 19:44:07 +00:00
|
|
|
\fBtblgen\fP translates from target description (\fB\&.td\fP) files into C++
|
2013-04-12 17:57:40 +00:00
|
|
|
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.
|
2012-08-20 18:33:03 +00:00
|
|
|
.sp
|
|
|
|
The input and output of \fBtblgen\fP is beyond the scope of this short
|
2015-01-10 21:44:31 +00:00
|
|
|
introduction; please see the \fBintroduction to TableGen\fP\&.
|
2012-08-20 18:33:03 +00:00
|
|
|
.sp
|
2014-02-16 19:44:07 +00:00
|
|
|
The \fIfilename\fP argument specifies the name of a Target Description (\fB\&.td\fP)
|
2013-04-12 17:57:40 +00:00
|
|
|
file to read as input.
|
2012-08-20 18:33:03 +00:00
|
|
|
.SH OPTIONS
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-help
|
2010-09-27 19:03:18 +00:00
|
|
|
Print a summary of command line options.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-o filename
|
|
|
|
Specify the output file name. If \fBfilename\fP is \fB\-\fP, then
|
|
|
|
\fBtblgen\fP sends its output to standard output.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-I directory
|
|
|
|
Specify where to find other target description files for inclusion. The
|
|
|
|
\fBdirectory\fP value should be a full or partial path to a directory that
|
|
|
|
contains target description files.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-asmparsernum N
|
2014-02-16 19:44:07 +00:00
|
|
|
Make \-gen\-asm\-parser emit assembly writer number \fBN\fP\&.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-asmwriternum N
|
2014-02-16 19:44:07 +00:00
|
|
|
Make \-gen\-asm\-writer emit assembly writer number \fBN\fP\&.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-class className
|
2010-09-27 19:03:18 +00:00
|
|
|
Print the enumeration list for this class.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-print\-records
|
2010-09-27 19:03:18 +00:00
|
|
|
Print all records to standard output (default).
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-print\-enums
|
2012-05-10 02:07:00 +00:00
|
|
|
Print enumeration values for a class.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-print\-sets
|
2012-08-20 18:33:03 +00:00
|
|
|
Print expanded sets for testing DAG exprs.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-emitter
|
2010-09-27 19:03:18 +00:00
|
|
|
Generate machine code emitter.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-register\-info
|
2012-04-16 21:23:25 +00:00
|
|
|
Generate registers and register classes info.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-instr\-info
|
2010-09-27 19:03:18 +00:00
|
|
|
Generate instruction descriptions.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-asm\-writer
|
2010-09-27 19:03:18 +00:00
|
|
|
Generate the assembly writer.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-disassembler
|
2012-04-16 21:23:25 +00:00
|
|
|
Generate disassembler.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-pseudo\-lowering
|
2012-04-16 21:23:25 +00:00
|
|
|
Generate pseudo instruction lowering.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-dag\-isel
|
2012-08-20 18:33:03 +00:00
|
|
|
Generate a DAG (Directed Acycle Graph) instruction selector.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-asm\-matcher
|
2012-04-16 21:23:25 +00:00
|
|
|
Generate assembly instruction matcher.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-dfa\-packetizer
|
2012-08-20 18:33:03 +00:00
|
|
|
Generate DFA Packetizer for VLIW targets.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-fast\-isel
|
2012-08-20 18:33:03 +00:00
|
|
|
Generate a "fast" instruction selector.
|
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-subtarget
|
2010-09-27 19:03:18 +00:00
|
|
|
Generate subtarget enumerations.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-intrinsic
|
2010-09-27 19:03:18 +00:00
|
|
|
Generate intrinsic information.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-tgt\-intrinsic
|
2012-04-16 21:23:25 +00:00
|
|
|
Generate target intrinsic information.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-gen\-enhanced\-disassembly\-info
|
2012-04-16 21:23:25 +00:00
|
|
|
Generate enhanced disassembly info.
|
2012-08-20 18:33:03 +00:00
|
|
|
.UNINDENT
|
|
|
|
.INDENT 0.0
|
2013-04-12 17:57:40 +00:00
|
|
|
.TP
|
|
|
|
.B \-version
|
2010-09-27 19:03:18 +00:00
|
|
|
Show the version number of this program.
|
2012-08-20 18:33:03 +00:00
|
|
|
.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
|
2016-03-03 23:09:57 +00:00
|
|
|
2003-2016, LLVM Project
|
2012-08-20 18:33:03 +00:00
|
|
|
.\" Generated by docutils manpage writer.
|
|
|
|
.
|