xref: /llvm-project/llvm/test/tools/llvm-remarkutil/convert.test (revision 7d80b94ca3ab4563c964ebbf3662c0d3033dc91a)
1RUN: llvm-remarkutil bitstream2yaml %p/Inputs/two-remarks.bitstream -o - | FileCheck %s -strict-whitespace
2RUN: llvm-remarkutil yaml2bitstream %p/Inputs/two-remarks.yaml -o %t
3RUN: llvm-remarkutil bitstream2yaml %t -o - | FileCheck %s -strict-whitespace
4
5; CHECK: --- !Analysis
6; CHECK-NEXT: Pass:            prologepilog
7; CHECK-NEXT: Name:            StackSize
8; CHECK-NEXT: Function:        func0
9; CHECK-NEXT: Args:
10; CHECK-NEXT:   - NumStackBytes:   '1'
11; CHECK-NEXT:   - String:          ' stack bytes in function'
12; CHECK-NEXT: ...
13; CHECK-NEXT: --- !Analysis
14; CHECK-NEXT: Pass:            asm-printer
15; CHECK-NEXT: Name:            InstructionCount
16; CHECK-NEXT: Function:        func0
17; CHECK-NEXT: Args:
18; CHECK-NEXT:   - NumInstructions: '1'
19; CHECK-NEXT:   - String:          ' instructions in function'
20; CHECK-NEXT: ...
21