extract - extract a function from an LLVM module
extract [options] --func function-name [filename]
The extract command takes the name of a function and extracts it from the specified LLVM bytecode file. It is primarily used as a debugging tool to reduce test cases from larger programs that are triggering a bug.
In addition to extracting the bytecode of the specified function, extract will also remove unreachable global variables, prototypes, and unused types.
The extract command reads its input from standard input if filename is omitted or if filename is -. The output is always written to standard output, unless the -o option is specified (see below).
If extract succeeds, it will exit with 0. Otherwise, if an error occurs, it will exit with a non-zero value.
Maintained by the LLVM Team (http://llvm.cs.uiuc.edu).