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.
44 Force overwrite. Normally, <tt>extract</tt> will refuse to overwrite an
45 output file that already exists. With this option, <tt>extract</tt>
46 will overwrite the output file and replace it with new bytecode.
49 <li>-func <function>
51 Extract the specified function from the LLVM bytecode.
56 Print a summary of command line options.
59 <li> -o <filename>
61 Specify the output filename. If filename is "-" (the default), then
62 <tt>extract</tt> sends its output to standard output.
72 Record the amount of time needed for each pass and print it to standard
81 If <tt>extract</tt> succeeds, it will exit with 0. Otherwise, if an error
82 occurs, it will exit with a non-zero value.
87 <a href="bugpoint.html"><tt>bugpoint</tt></a>
90 Maintained by the <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>.