From: Joel Jones Date: Thu, 24 May 2012 04:38:50 +0000 (+0000) Subject: Reflect that tblgen is now llvm-tblgen X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2edc84ee60453dea192e609619c522216eb9073b;p=platform%2Fupstream%2Fllvm.git Reflect that tblgen is now llvm-tblgen llvm-svn: 157371 --- diff --git a/llvm/docs/TableGenFundamentals.html b/llvm/docs/TableGenFundamentals.html index b374cc5..58f9876 100644 --- a/llvm/docs/TableGenFundamentals.html +++ b/llvm/docs/TableGenFundamentals.html @@ -225,18 +225,18 @@ else in user code to avoid conflict problems.

TableGen runs just like any other LLVM tool. The first (optional) argument -specifies the file to read. If a filename is not specified, tblgen -reads from standard input.

+specifies the file to read. If a filename is not specified, +llvm-tblgen reads from standard input.

To be useful, one of the TableGen backends must be -used. These backends are selectable on the command line (type 'tblgen +used. These backends are selectable on the command line (type 'llvm-tblgen -help' for a list). For example, to get a list of all of the definitions that subclass a particular type (which can be useful for building up an enum list of these records), use the -print-enums option:

-$ tblgen X86.td -print-enums -class=Register
+$ llvm-tblgen X86.td -print-enums -class=Register
 AH, AL, AX, BH, BL, BP, BPL, BX, CH, CL, CX, DH, DI, DIL, DL, DX, EAX, EBP, EBX,
 ECX, EDI, EDX, EFLAGS, EIP, ESI, ESP, FP0, FP1, FP2, FP3, FP4, FP5, FP6, IP,
 MM0, MM1, MM2, MM3, MM4, MM5, MM6, MM7, R10, R10B, R10D, R10W, R11, R11B, R11D,
@@ -246,7 +246,7 @@ RDX, RIP, RSI, RSP, SI, SIL, SP, SPL, ST0, ST1, ST2, ST3, ST4, ST5, ST6, ST7,
 XMM0, XMM1, XMM10, XMM11, XMM12, XMM13, XMM14, XMM15, XMM2, XMM3, XMM4, XMM5,
 XMM6, XMM7, XMM8, XMM9,
 
-$ tblgen X86.td -print-enums -class=Instruction 
+$ llvm-tblgen X86.td -print-enums -class=Instruction 
 ABS_F, ABS_Fp32, ABS_Fp64, ABS_Fp80, ADC32mi, ADC32mi8, ADC32mr, ADC32ri,
 ADC32ri8, ADC32rm, ADC32rr, ADC64mi32, ADC64mi8, ADC64mr, ADC64ri32, ADC64ri8,
 ADC64rm, ADC64rr, ADD16mi, ADD16mi8, ADD16mr, ADD16ri, ADD16ri8, ADD16rm,
@@ -604,7 +604,8 @@ useful in conjunction with template arguments.  As an example:

This is obviously a contrived example, but it shows how template arguments can be used to decouple the interface provided to the user of the class from the actual internal data representation expected by the class. In this case, -running tblgen on the example prints the following definitions:

+running llvm-tblgen on the example prints the following +definitions: