[PATCH] D40425: Extending CFGPrinter and CallPrinter with Heat Colors

Rodrigo Caetano Rocha via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 24 04:35:43 PST 2017


rcorcs created this revision.
Herald added a subscriber: mgorny.

Extends the CFGPrinter and CallPrinter with heat colors based on heuristics or profiling information.
The colors can be enabled for CFGPrinter by using the option -cfg-heat-colors for both -dot-cfg[-only] and -view-cfg[-only].
Similarly, the colors can be enabled for CallPrinter by using the option -callgraph-heat-colors for both -dot-callgraph and -view-callgraph.


Repository:
  rL LLVM

https://reviews.llvm.org/D40425

Files:
  include/llvm/Analysis/CFGPrinter.h
  include/llvm/Analysis/HeatUtils.h
  lib/Analysis/CFGPrinter.cpp
  lib/Analysis/CMakeLists.txt
  lib/Analysis/CallPrinter.cpp
  lib/Analysis/DomPrinter.cpp
  lib/Analysis/HeatUtils.cpp
  lib/Analysis/RegionPrinter.cpp
  lib/Transforms/Scalar/NewGVN.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40425.124162.patch
Type: text/x-patch
Size: 34206 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171124/ea301ba4/attachment.bin>


More information about the llvm-commits mailing list