xref: /llvm-project/llvm/test/tools/llvm-remarkutil/instruction-count.test (revision 31c2cf1136179da2bd179d28ea632bd73f5c0ea9)
1RUN: llvm-remarkutil instruction-count --parser=yaml %p/Inputs/instruction-count.yaml | FileCheck %s
2RUN: llvm-remarkutil yaml2bitstream %p/Inputs/instruction-count.yaml | llvm-remarkutil instruction-count --parser=bitstream | FileCheck %s
3RUN: llvm-remarkutil count --parser=yaml --count-by=arg --group-by=function --remark-name="InstructionCount" %p/Inputs/instruction-count.yaml | FileCheck %s --check-prefix=COUNT-CHECK
4RUN: llvm-remarkutil yaml2bitstream %p/Inputs/instruction-count.yaml  | llvm-remarkutil count --parser=bitstream --count-by=arg --group-by=function --remark-name="InstructionCount" | FileCheck %s --check-prefix=COUNT-CHECK
5
6; CHECK-LABEL: Function,InstructionCount
7; CHECK: func1,1
8; CHECK: func2,2
9; CHECK: func3,3
10
11; COUNT-CHECK-LABEL: Function,NumInstructions
12; COUNT-CHECK: func1,1
13; COUNT-CHECK: func2,2
14; COUNT-CHECK: func3,3
15