Home | History | Annotate | Download | only in CommandGuide
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
      2                       "http://www.w3.org/TR/html4/strict.dtd">
      3 <html>
      4 <head>
      5   <title>LLVM Command Guide</title>
      6   <link rel="stylesheet" href="../llvm.css" type="text/css">
      7 </head>
      8 <body>
      9 
     10 <h1>
     11   LLVM Command Guide
     12 </h1>
     13 
     14 <div>
     15 
     16 <p>These documents are HTML versions of the <a href="man/man1/">man pages</a>
     17 for all of the LLVM tools.  These pages describe how to use the LLVM commands
     18 and what their options are.  Note that these pages do not describe all of the
     19 options available for all tools.  To get a complete listing, pass the
     20 <tt>-help</tt> (general options) or <tt>-help-hidden</tt> (general+debugging
     21 options) arguments to the tool you are interested in.</p>
     22 
     23 </div>
     24 
     25 <!-- *********************************************************************** -->
     26 <h2>
     27   <a name="basic">Basic Commands</a>
     28 </h2>
     29 <!-- *********************************************************************** -->
     30 
     31 <div>
     32 
     33 <ul>
     34 
     35 <li><a href="/cmds/llvm-as.html"><b>llvm-as</b></a> -
     36     assemble a human-readable .ll file into bytecode</li>
     37 
     38 <li><a href="/cmds/llvm-dis.html"><b>llvm-dis</b></a> -
     39     disassemble a bytecode file into a human-readable .ll file</li>
     40 
     41 <li><a href="/cmds/opt.html"><b>opt</b></a> -
     42     run a series of LLVM-to-LLVM optimizations on a bytecode file</li>
     43 
     44 <li><a href="/cmds/llc.html"><b>llc</b></a> -
     45     generate native machine code for a bytecode file</li>
     46 
     47 <li><a href="/cmds/lli.html"><b>lli</b></a> -
     48     directly run a program compiled to bytecode using a JIT compiler or
     49     interpreter</li>
     50 
     51 <li><a href="/cmds/llvm-link.html"><b>llvm-link</b></a> -
     52     link several bytecode files into one</li>
     53 
     54 <li><a href="/cmds/llvm-ar.html"><b>llvm-ar</b></a> -
     55     archive bytecode files</li>
     56 
     57 <li><a href="/cmds/llvm-ranlib.html"><b>llvm-ranlib</b></a> -
     58     create an index for archives made with llvm-ar</li>
     59 
     60 <li><a href="/cmds/llvm-nm.html"><b>llvm-nm</b></a> -
     61     print out the names and types of symbols in a bytecode file</li>
     62 
     63 <li><a href="/cmds/llvm-prof.html"><b>llvm-prof</b></a> -
     64     format raw `<tt>llvmprof.out</tt>' data into a human-readable report</li>
     65 
     66 <li><a href="/cmds/llvm-ld.html"><b>llvm-ld</b></a> -
     67     general purpose linker with loadable runtime optimization support</li>
     68 
     69 <li><a href="/cmds/llvm-config.html"><b>llvm-config</b></a> -
     70     print out LLVM compilation options, libraries, etc. as configured</li>
     71 
     72 <li><a href="/cmds/llvmc.html"><b>llvmc</b></a> -
     73     a generic customizable compiler driver</li>
     74 
     75 <li><a href="/cmds/llvm-diff.html"><b>llvm-diff</b></a> -
     76     structurally compare two modules</li>
     77 
     78 </ul>
     79 
     80 </div>
     81 
     82 <!-- *********************************************************************** -->
     83 <h2>
     84   <a name="frontend">C and C++ Front-end Commands</a>
     85 </h2>
     86 <!-- *********************************************************************** -->
     87 
     88 <div>
     89 <ul>
     90 
     91 <li><a href="/cmds/llvmgcc.html"><b>llvm-gcc</b></a> -
     92     GCC-based C front-end for LLVM
     93 
     94 <li><a href="/cmds/llvmgxx.html"><b>llvm-g++</b></a> -
     95     GCC-based C++ front-end for LLVM</li>
     96 
     97 </ul>
     98 
     99 </div>
    100 
    101 <!-- *********************************************************************** -->
    102 <h2>
    103   <a name="debug">Debugging Tools</a>
    104 </h2>
    105 <!-- *********************************************************************** -->
    106 
    107 
    108 <div>
    109 
    110 <ul>
    111 
    112 <li><a href="/cmds/bugpoint.html"><b>bugpoint</b></a> -
    113     automatic test-case reducer</li>
    114 
    115 <li><a href="/cmds/llvm-extract.html"><b>llvm-extract</b></a> -
    116     extract a function from an LLVM bytecode file</li>
    117 
    118 <li><a href="/cmds/llvm-bcanalyzer.html"><b>llvm-bcanalyzer</b></a> -
    119     bytecode analyzer (analyzes the binary encoding itself, not the program it
    120     represents)</li>
    121 
    122 </ul>
    123 </div>
    124 
    125 <!-- *********************************************************************** -->
    126 <h2>
    127   <a name="internal">Internal Tools</a>
    128 </h2>
    129 <!-- *********************************************************************** -->
    130 
    131 <div>
    132 <ul>
    133 
    134 <li><a href="/cmds/FileCheck.html"><b>FileCheck</b></a> -
    135     Flexible file verifier used extensively by the testing harness</li>
    136 <li><a href="/cmds/tblgen.html"><b>tblgen</b></a> -
    137     target description reader and generator</li>
    138 <li><a href="/cmds/lit.html"><b>lit</b></a> -
    139     LLVM Integrated Tester, for running tests</li>
    140 
    141 </ul>
    142 </div>
    143 
    144 <!-- *********************************************************************** -->
    145 
    146 <hr>
    147 <address>
    148   <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
    149   src="http://jigsaw.w3.org/css-validator/images/vcss-blue" alt="Valid CSS"></a>
    150   <a href="http://validator.w3.org/check/referer"><img
    151   src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a>
    152 
    153   <a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br>
    154   Last modified: $Date$
    155 </address>
    156 
    157 </body>
    158 </html>
    159