| RUN: llvm-remarkutil instruction-count --use-debug-loc --parser=yaml %p/Inputs/instruction-count-with-dbg-loc.yaml | FileCheck %s |
| RUN: llvm-remarkutil yaml2bitstream %p/Inputs/instruction-count-with-dbg-loc.yaml | llvm-remarkutil instruction-count --use-debug-loc --parser=bitstream | FileCheck %s |
| 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 |
| 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 |
| |
| ; CHECK-LABEL: Source,Function,InstructionCount |
| ; CHECK: path/to/inst.c:1:2,func1,1 |
| ; CHECK: path/to/inst2.c:1:2,func2,2 |
| ; CHECK: path/to/inst3.c:1:2,func3,3 |
| |
| ; COUNT-CHECK-LABEL: FuctionWithDebugLoc,NumInstructions |
| ; COUNT-CHECK: path/to/inst.c:func1,1 |
| ; COUNT-CHECK: path/to/inst2.c:func2,2 |
| ; COUNT-CHECK: path/to/inst3.c:func3,3 |