25 lines · plain
1RUN: llvm-remarkutil bitstream2yaml %p/Inputs/two-remarks.bitstream -o %t.yaml2RUN: FileCheck %s -strict-whitespace < %t.yaml3RUN: not llvm-remarkutil bitstream2yaml %p/Inputs/two-remarks.v0.bitstream 2>&1 -o - | FileCheck %s --check-prefix=ERR4RUN: llvm-remarkutil yaml2bitstream %p/Inputs/two-remarks.yaml -o %t.bitstream5RUN: llvm-remarkutil bitstream2yaml %t.bitstream -o - | FileCheck %s -strict-whitespace6 7; ERR: error: Unsupported remark container version (expected: 1, read: 0). Please upgrade/downgrade your toolchain to read this container.8 9; CHECK: --- !Analysis10; CHECK-NEXT: Pass: prologepilog11; CHECK-NEXT: Name: StackSize12; CHECK-NEXT: Function: func013; CHECK-NEXT: Args:14; CHECK-NEXT: - NumStackBytes: '1'15; CHECK-NEXT: - String: ' stack bytes in function'16; CHECK-NEXT: ...17; CHECK-NEXT: --- !Analysis18; CHECK-NEXT: Pass: asm-printer19; CHECK-NEXT: Name: InstructionCount20; CHECK-NEXT: Function: func021; CHECK-NEXT: Args:22; CHECK-NEXT: - NumInstructions: '1'23; CHECK-NEXT: - String: ' instructions in function'24; CHECK-NEXT: ...25