9 <h1>LLVM: extract tool</h1>
23 extract [options] [filename]
28 The extract command takes the name of a function and extracts it from the
29 specified LLVM bytecode file. It is primarily used as a debugging tool to
30 reduce test cases from larger programs that are triggering a bug.
33 In addition to extracting the bytecode of the specified function, extract will
34 also remove unreachable global variables, prototypes, and unused types.
37 The extract command will read its input from standard input if filename is
38 omitted or if filename is -. The output is always written to standard output.
45 <li>-func <function>
47 Extract function from the LLVM bytecode.
52 Print a summary of command line options.
62 Record the amount of time needed for each pass and print it to standard
70 If extract succeeds, it will exit with 0. Otherwise, if an error occurs, it
71 will exit with a non-zero value.
79 <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>