llvm
- How to print out cce hidden options?
./cce-llc --help-hidden | less
Filter dbg output by mangled function names
-filter-print-funcs=<function names>
- Only print IR for functions whose name match this for all print-[before|after][-all] options
- How to print out just detailed dbg information for one pass?
Instead of use -debug to print everything which is overwhelmingly too much, you can use -mllvm -debug-only=path-name,
e.g: -mllvm -debug-only=machine-licm
-dot-cfg-only: Print CFG of function to 'dot' file (with no function bodies)
This pass, only available in
opt, prints the control flow graph into a .dot graph, omitting the function bodies. This graph can then be processed with the "dot" tool to convert it to postscript or some other suitable format.e.g:
clang++ hello.cpp -S -emit-llvm
opt -dot-cfg-only hello.ll
dot -Tpdf cfg.main.dot -o cfg.main.pdf
Comments
Post a Comment