Scroll to navigation

TBLGEN(1) LLVM TBLGEN(1)

NAME

tblgen - Target Description To C++ Code Generator

SYNOPSIS

tblgen [options] [filename]

DESCRIPTION

tblgen 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.

The input and output of tblgen is beyond the scope of this short introduction; please see the introduction to TableGen.

The filename argument specifies the name of a Target Description (.td) file to read as input.

OPTIONS

Print a summary of command line options.

Specify the output file name. If filename is -, then tblgen sends its output to standard output.

Specify where to find other target description files for inclusion. The directory value should be a full or partial path to a directory that contains target description files.

Make -gen-asm-parser emit assembly writer number N.

Make -gen-asm-writer emit assembly writer number N.

Print the enumeration list for this class.

Print all records to standard output (default).

Print enumeration values for a class.

Print expanded sets for testing DAG exprs.

Generate machine code emitter.

Generate registers and register classes info.

Generate instruction descriptions.

Generate the assembly writer.

Generate disassembler.

Generate pseudo instruction lowering.

Generate a DAG (Directed Acycle Graph) instruction selector.

Generate assembly instruction matcher.

Generate DFA Packetizer for VLIW targets.

Generate a “fast” instruction selector.

Generate subtarget enumerations.

Generate intrinsic information.

Generate target intrinsic information.

Generate enhanced disassembly info.

Show the version number of this program.

EXIT STATUS

If tblgen succeeds, it will exit with 0. Otherwise, if an error occurs, it will exit with a non-zero value.

AUTHOR

Maintained by The LLVM Team (http://llvm.org/).

COPYRIGHT

2003-2018, LLVM Project

2018-03-28 5