9 <h1>LLVM: <tt>extract</tt> tool</h1>
20 <tt>extract [options] [filename]</tt>
25 The <tt>extract</tt> command takes the name of a function and extracts it from
26 the specified LLVM bytecode file. It is primarily used as a debugging tool to
27 reduce test cases from larger programs that are triggering a bug.
30 In addition to extracting the bytecode of the specified function,
31 <tt>extract</tt> will also remove unreachable global variables, prototypes, and
35 The <tt>extract</tt> command reads its input from standard input if filename is
36 omitted or if filename is -. The output is always written to standard output.
43 <li>-func <function>
45 Extract the specified function from the LLVM bytecode.
50 Print a summary of command line options.
58 If <tt>extract</tt> succeeds, it will exit with 0. Otherwise, if an error
59 occurs, it will exit with a non-zero value.
64 <a href="bugpoint.html"><tt>bugpoint</tt></a>
67 Maintained by the <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>.