blob: 2b1bdcb0a5b3a0ba0ef78ffb5a3f02b6122b15f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
RUN: llvm-remarkutil bitstream2yaml %p/Inputs/two-remarks.bitstream -o %t.yaml
RUN: FileCheck %s -strict-whitespace < %t.yaml
RUN: not llvm-remarkutil bitstream2yaml %p/Inputs/two-remarks.v0.bitstream 2>&1 -o - | FileCheck %s --check-prefix=ERR
RUN: llvm-remarkutil yaml2bitstream %p/Inputs/two-remarks.yaml -o %t.bitstream
RUN: llvm-remarkutil bitstream2yaml %t.bitstream -o - | FileCheck %s -strict-whitespace
; ERR: error: Unsupported remark container version (expected: 1, read: 0). Please upgrade/downgrade your toolchain to read this container.
; CHECK: --- !Analysis
; CHECK-NEXT: Pass: prologepilog
; CHECK-NEXT: Name: StackSize
; CHECK-NEXT: Function: func0
; CHECK-NEXT: Args:
; CHECK-NEXT: - NumStackBytes: '1'
; CHECK-NEXT: - String: ' stack bytes in function'
; CHECK-NEXT: ...
; CHECK-NEXT: --- !Analysis
; CHECK-NEXT: Pass: asm-printer
; CHECK-NEXT: Name: InstructionCount
; CHECK-NEXT: Function: func0
; CHECK-NEXT: Args:
; CHECK-NEXT: - NumInstructions: '1'
; CHECK-NEXT: - String: ' instructions in function'
; CHECK-NEXT: ...
|