opt Command Examples

Runs optimizations and analyse LLVM source files. More information: https://llvm.org/docs/CommandGuide/opt.html.

opt -{{passname}} {{path/to/file.bc}} -S -o {{file_opt.bc}}

opt {{-dot-cfg}} -S {{path/to/file.bc}} -disable-output

opt -O2 {{path/to/file.bc}} -S -o {{path/to/output_file.bc}}