opt
Run optimizations and analyze LLVM source files. More information: https://llvm.org/docs/CommandGuide/opt.html.
- Run an optimization or analysis on a bitcode file:
opt - -S -o
- Output the Control Flow Graph of a function to a
.dotfile:
opt -S -disable-output
- Optimize the program at level 2 and output the result to another file:
opt -O2 -S -o
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
