From 8874aaef1dcab6a05e60de2d3fdf478bb0ea73df Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 31 May 2006 17:54:39 +0000 Subject: Add a brief description for the tblgen program. More detail is needed but the current author is not the person to provide it. Now that the file exists, perhaps others will chime in and embellish. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28591 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CommandGuide/tblgen.pod | 119 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 docs/CommandGuide/tblgen.pod (limited to 'docs') diff --git a/docs/CommandGuide/tblgen.pod b/docs/CommandGuide/tblgen.pod new file mode 100644 index 0000000000..9bb4e9a240 --- /dev/null +++ b/docs/CommandGuide/tblgen.pod @@ -0,0 +1,119 @@ + +=pod + +=head1 NAME + +tblgen - Target Description To C++ Code Generator + +=head1 SYNOPSIS + +B [I] [I] + +=head1 DESCRIPTION + +B 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 B is beyond the scope of this short +introduction. Please see the I page in the LLVM documentation. + +The F argument specifies the name of a Target Description (.td) file +to read as input. + +=head1 OPTIONS + +=over + +=item B<--help> + +Print a summary of command line options. + +=item B<-o> F + +Specify the output file name. If F is C<->, then B +sends its output to standard output. + +=item B<-I> F + +Specify where to find other target description files for inclusion. The +F value should be a full or partial path to a directory that contains +target description files. + +=item B<-asmwriternum> F + +Make -gen-asm-writer emit assembly writer number F. + +=item B<-class> F + +Print the enumeration list for this class. + +=item B<-print-records> + +Print all records to standard output (default). + +=item B<-print-enums> + +Print enumeration values for a class + +=item B<-gen-emitter> + +Generate machine code emitter. + +=item B<-gen-register-enums> + +Generate the enumeration values for all registers. + +=item B<-gen-register-desc> + +Generate a register info description for each register. + +=item B<-gen-register-desc-header> + +Generate a register info description header for each register. + +=item B<-gen-instr-enums> + +Generate enumeration values for instructions. + +=item B<-gen-instr-desc> + +Generate instruction descriptions. + +=item B<-gen-asm-writer> + +Generate the assembly writer. + +=item B<-gen-dag-isel> + +Generate a DAG (Directed Acycle Graph) instruction selector. + +=item B<-gen-subtarget> + +Generate subtarget enumerations. + +=item B<-gen-intrinsic> + +Generate intrinsic information. + +=item B<-version> + +Show the version number of this program. + +=back + +=head1 EXIT STATUS + +If B succeeds, it will exit with 0. Otherwise, if an error +occurs, it will exit with a non-zero value. + +=head1 SEE ALSO + +L + +=head1 AUTHORS + +Mainteind by The LLVM Team (L). + +=cut -- cgit v1.2.3