6 tblgen - Target Description To C++ Code Generator
10 B<tblgen> [I<options>] [I<filename>]
14 B<tblgen> translates from target description (.td) files into C++ code that can
15 be included in the definition of an LLVM target library. Most users of LLVM will
16 not need to use this program. It is only for assisting with writing an LLVM
19 The input and output of B<tblgen> is beyond the scope of this short
20 introduction. Please see the I<CodeGeneration> page in the LLVM documentation.
22 The F<filename> argument specifies the name of a Target Description (.td) file
31 Print a summary of command line options.
33 =item B<-o> F<filename>
35 Specify the output file name. If F<filename> is C<->, then B<tblgen>
36 sends its output to standard output.
38 =item B<-I> F<directory>
40 Specify where to find other target description files for inclusion. The
41 F<directory> value should be a full or partial path to a directory that contains
42 target description files.
44 =item B<-asmwriternum> F<N>
46 Make -gen-asm-writer emit assembly writer number F<N>.
48 =item B<-class> F<class Name>
50 Print the enumeration list for this class.
52 =item B<-print-records>
54 Print all records to standard output (default).
58 Print enumeration values for a class
62 Generate machine code emitter.
64 =item B<-gen-register-enums>
66 Generate the enumeration values for all registers.
68 =item B<-gen-register-desc>
70 Generate a register info description for each register.
72 =item B<-gen-register-desc-header>
74 Generate a register info description header for each register.
76 =item B<-gen-instr-enums>
78 Generate enumeration values for instructions.
80 =item B<-gen-instr-desc>
82 Generate instruction descriptions.
84 =item B<-gen-asm-writer>
86 Generate the assembly writer.
88 =item B<-gen-dag-isel>
90 Generate a DAG (Directed Acycle Graph) instruction selector.
92 =item B<-gen-subtarget>
94 Generate subtarget enumerations.
96 =item B<-gen-intrinsic>
98 Generate intrinsic information.
102 Show the version number of this program.
108 If B<tblgen> succeeds, it will exit with 0. Otherwise, if an error
109 occurs, it will exit with a non-zero value.
113 Maintained by The LLVM Team (L<http://llvm.org/>).