1 RUN: llvm-remarkutil instruction-count --use-debug-loc --parser=yaml %p/Inputs/instruction-count-with-dbg-loc.yaml | FileCheck %s
2 RUN: llvm-remarkutil yaml2bitstream %p/Inputs/instruction-count-with-dbg-loc.yaml | llvm-remarkutil instruction-count --use-debug-loc --parser=bitstream | FileCheck %s
3 RUN: llvm-remarkutil count --parser=yaml --count-by=arg --group-by=function-with-loc --remark-name="InstructionCount" %p/Inputs/instruction-count-with-dbg-loc.yaml | FileCheck %s --check-prefix=COUNT-CHECK
4 RUN: llvm-remarkutil yaml2bitstream %p/Inputs/instruction-count-with-dbg-loc.yaml | llvm-remarkutil count --parser=bitstream --count-by=arg --group-by=function-with-loc --remark-name="InstructionCount" | FileCheck %s --check-prefix=COUNT-CHECK
6 ; CHECK-LABEL: Source,Function,InstructionCount
7 ; CHECK: path/to/inst.c:1:2,func1,1
8 ; CHECK: path/to/inst2.c:1:2,func2,2
9 ; CHECK: path/to/inst3.c:1:2,func3,3
11 ; COUNT-CHECK-LABEL: FuctionWithDebugLoc,NumInstructions
12 ; COUNT-CHECK: path/to/inst.c:func1,1
13 ; COUNT-CHECK: path/to/inst2.c:func2,2
14 ; COUNT-CHECK: path/to/inst3.c:func3,3