CmdID

CmdID / Commands

opt

Run optimizations and analyze LLVM source files. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Run an optimization or analysis on a bitcode file

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

Output the Control Flow Graph of a function to a .dot file

opt -dot-cfg -S path/to/file.bc -disable-outputIdentify

Optimize the program at level 2 and output the result to another file

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