[CallPrinter] Adding heat coloring to CallPrinter
authorKirill Naumov <knaumov@azul.com>
Tue, 16 Jun 2020 18:39:54 +0000 (18:39 +0000)
committerKirill Naumov <knaumov@azul.com>
Tue, 16 Jun 2020 21:15:29 +0000 (21:15 +0000)
commit369d00df60dce4b107734a061c299971972ae55d
tree64b13cff915e3fd8ec3d8156d51acbd10139d827
parentdef21563895d757c7769de41d4ee8d9cb99714db
[CallPrinter] Adding heat coloring to CallPrinter

This patch introduces the heat coloring of the Call Printer which is based
on the relative "hotness" of each function. The patch is a part of sequence of
three patches, related to graphs Heat Coloring.
Another feature added is the flag similar to "-cfg-dot-filename-prefix",
which allows to write the graph into a named .pdf

Reviewers: rcorcs, apilipenko, davidxl, sfertile, fedor.sergeev, eraman, bollu

Differential Revision: https://reviews.llvm.org/D77172
llvm/include/llvm/Analysis/HeatUtils.h
llvm/lib/Analysis/CallPrinter.cpp
llvm/lib/Analysis/HeatUtils.cpp
llvm/test/Other/heat-colors-graphs.ll
llvm/test/Other/heat-colors-multigraph.ll [new file with mode: 0644]