LLVM: opt tool


NAME

opt

SYNOPSIS

opt [options] [filename]

DESCRIPTION

The opt command is the LLVM optimizer. It takes LLVM bytecode as input, runs the specified optimizations on it, and then outputs the optimized LLVM bytecode.

The optimizations available via opt depend upon what libraries were linked into it as well as any additional libraries that have been loaded with the -load option. Use the -help option to determine what optimizations you can use.

If no filename is specified on the command line, opt reads its input from standard input.

If an output filename is not specified with the -o option, opt writes its output to the standard output.

OPTIONS

EXIT STATUS

If opt succeeds, it will exit with 0. Otherwise, if an error occurs, it will exit with a non-zero value.

SEE ALSO

analyze
Maintained by the LLVM Team.