LLVM: extract tool


NAME

extract

SYNOPSIS

extract [options] [filename]

DESCRIPTION

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.

OPTIONS