[CallPrinter] Port CallPrinter passes to new pass manager
authorArthur Eubanks <aeubanks@google.com>
Mon, 18 Apr 2022 16:58:11 +0000 (09:58 -0700)
committerArthur Eubanks <aeubanks@google.com>
Mon, 18 Apr 2022 17:02:18 +0000 (10:02 -0700)
commita7e20a8a7afa50643dd0423c9844ee60ee5cd8dd
treec97191813f8029cd1439f0e76539cc23c183c734
parent17f6cba30d94fa90adf2ddc647009a52e0697c2d
[CallPrinter] Port CallPrinter passes to new pass manager

Port the legacy CallGraphViewer and CallGraphDOTPrinter to work with the new pass manager.

Addresses issue https://github.com/llvm/llvm-project/issues/54323
Adds back related tests that were removed in commits d53a4e7b4a87 and 9e9d9aba1475

Reviewed By: aeubanks

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