15 lines · plain
1RUN: llvm-remarkutil instruction-count --use-debug-loc --parser=yaml %p/Inputs/instruction-count-with-dbg-loc.yaml | FileCheck %s2RUN: llvm-remarkutil yaml2bitstream %p/Inputs/instruction-count-with-dbg-loc.yaml | llvm-remarkutil instruction-count --use-debug-loc --parser=bitstream | FileCheck %s3RUN: 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-CHECK4RUN: 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-CHECK5 6; CHECK-LABEL: Source,Function,InstructionCount7; CHECK: path/to/inst.c:1:2,func1,18; CHECK: path/to/inst2.c:1:2,func2,29; CHECK: path/to/inst3.c:1:2,func3,310 11; COUNT-CHECK-LABEL: FuctionWithDebugLoc,NumInstructions12; COUNT-CHECK: path/to/inst.c:func1,113; COUNT-CHECK: path/to/inst2.c:func2,214; COUNT-CHECK: path/to/inst3.c:func3,315