Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CallPrinter] Port CallPrinter passes to new pass manager
Port the legacy CallGraphViewer and CallGraphDOTPrinter to work with the new pass manager. Addresses issue #54323 Adds back related tests that were removed in commits d53a4e7 and 9e9d9ab Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D122989
- Loading branch information
Showing
6 changed files
with
106 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; RUN: opt %s -dot-callgraph -callgraph-multigraph -callgraph-dot-filename-prefix=%t -disable-output | ||
; RUN: FileCheck %s -input-file=%t.callgraph.dot --check-prefix=CHECK-MULTIGRAPH | ||
; RUN: opt %s -dot-callgraph -callgraph-dot-filename-prefix=%t -disable-output | ||
; RUN: FileCheck %s -input-file=%t.callgraph.dot --check-prefix=CHECK | ||
|
||
; CHECK-MULTIGRAPH: {external caller} | ||
; CHECK-NOT: {external caller} | ||
|
||
define void @bar() { | ||
ret void | ||
} | ||
|
||
define void @foo() { | ||
call void @bar() | ||
ret void | ||
} |