5 extract - extract a function from an LLVM module
9 B<extract> [I<options>] B<--func> I<function-name> [I<filename>]
13 The B<extract> command takes the name of a function and extracts it from
14 the specified LLVM bytecode file. It is primarily used as a debugging tool to
15 reduce test cases from larger programs that are triggering a bug.
17 In addition to extracting the bytecode of the specified function,
18 B<extract> will also remove unreachable global variables, prototypes, and
21 The B<extract> command reads its input from standard input if filename is
22 omitted or if filename is -. The output is always written to standard output,
23 unless the B<-o> option is specified (see below).
31 Force overwrite. Normally, B<extract> will refuse to overwrite an
32 output file that already exists. With this option, B<extract>
33 will overwrite the output file and replace it with new bytecode.
35 =item B<--func> I<function-name>
37 Extract the function named I<function-name> from the LLVM bytecode.
41 Print a summary of command line options.
43 =item B<-o> I<filename>
45 Specify the output filename. If filename is "-" (the default), then
46 B<extract> sends its output to standard output.
52 =item B<--time-passes>
54 Record the amount of time needed for each pass and print it to standard
61 If B<extract> succeeds, it will exit with 0. Otherwise, if an error
62 occurs, it will exit with a non-zero value.
70 Maintained by the LLVM Team (L<http://llvm.cs.uiuc.edu>).