Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BitcodeAnalyzer] allow a motivated user to dump BLOCKINFO
This adds the `--dump-blockinfo` flag to `llvm-bcanalyzer`, allowing a sufficiently motivated user to dump (parts of) the `BLOCKINFO_BLOCK` block. The default behavior is unchanged, and `--dump-blockinfo` only takes effect in the same context as other flags that control dump behavior (i.e., requires that `--dump` is also passed). Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D107536
- Loading branch information
Showing
4 changed files
with
26 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# RUN: llvm-bcanalyzer --dump --dump-blockinfo %S/Inputs/has-block-info.bc | FileCheck %s | ||
|
||
# CHECK: <BLOCKINFO_BLOCK NumWords=13 BlockCodeSize=2> | ||
# CHECK: <SETBID op0=8/> | ||
# CHECK: <BLOCKNAME op0=65 op1=66 op2=67 op3=0/> | ||
# CHECK: <SETRECORDNAME op0=0 op1=65 op2=65 op3=65 op4=0/> | ||
# CHECK: <SETRECORDNAME op0=1 op1=66 op2=66 op3=66 op4=0/> | ||
# CHECK: <SETBID op0=9/> | ||
# CHECK: <BLOCKNAME op0=88 op1=89 op2=90 op3=0/> | ||
# CHECK: <SETRECORDNAME op0=0 op1=88 op2=88 op3=88 op4=0/> | ||
# CHECK: <SETRECORDNAME op0=1 op1=89 op2=89 op3=89 op4=0/> | ||
# CHECK: </BLOCKINFO_BLOCK> |
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