llvm/test/Other/bcanalyzer-block-info.txt
Jordan Rose d421075d0c Teach llvm-bcanalyzer to use one stream's BLOCKINFO to read another stream.
This allows streams that only use BLOCKINFO for debugging purposes to omit
the block entirely. As long as another stream is available with the correct
BLOCKINFO, the first stream can still be analyzed and dumped.

As part of this commit, BitstreamReader gets a move constructor and move
assignment operator, as well as a takeBlockInfo method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216826 91177308-0d34-0410-b5e6-96231b3b80d8
2014-08-30 17:07:55 +00:00

33 lines
1.0 KiB
Plaintext

RUN: llvm-bcanalyzer -dump %S/Inputs/has-block-info.bc | FileCheck -check-prefix=CHECK -check-prefix=DATA %s
RUN: llvm-bcanalyzer -dump %S/Inputs/no-block-info.bc | FileCheck -check-prefix=UNKNOWN -check-prefix=DATA %s
RUN: llvm-bcanalyzer -dump %S/Inputs/no-block-info.bc -block-info %S/Inputs/block-info-only.bc | FileCheck -check-prefix=CHECK -check-prefix=DATA %s
CHECK: <ABC
UNKNOWN: <UnknownBlock8
DATA: NumWords=4 BlockCodeSize=2>
CHECK: <AAA
UNKNOWN: <UnknownCode0
DATA: op0=42 op1=43 op2=44/>
CHECK: <BBB
UNKNOWN: <UnknownCode1
DATA: op0=42/>
CHECK: <AAA
UNKNOWN: <UnknownCode0
DATA: op0=42/>
CHECK: </ABC>
UNKNOWN: </UnknownBlock8>
CHECK: <XYZ
UNKNOWN: <UnknownBlock9
DATA: NumWords=3 BlockCodeSize=3>
CHECK: <XXX
UNKNOWN: <UnknownCode0
DATA: abbrevid=4 op0=50 op1=4/>
CHECK: <YYY
UNKNOWN: <UnknownCode1
DATA: op0=42/>
CHECK: <XXX
UNKNOWN: <UnknownCode0
DATA: abbrevid=4 op0=50 op1=5/>
CHECK: </XYZ>
UNKNOWN: </UnknownBlock9>