mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-29 11:46:06 +00:00

This adds a `annotation-count` option to llvm-remarkutil. ``` llvm-remarkutil annotation-count -remark=REMARK ``` This will print out the remark count for a pass that uses annotation remarks. Differential Revision: https://reviews.llvm.org/D147710
8 lines
368 B
Plaintext
8 lines
368 B
Plaintext
RUN: llvm-remarkutil annotation-count --parser=yaml --annotation-type=remark %p/Inputs/annotation-count.yaml | FileCheck %s
|
|
RUN: llvm-remarkutil yaml2bitstream %p/Inputs/annotation-count.yaml | llvm-remarkutil annotation-count --parser=bitstream --annotation-type=remark | FileCheck %s
|
|
|
|
; CHECK-LABEL: Function,Count
|
|
; CHECK: func1,1
|
|
; CHECK: func2,2
|
|
; CHECK: func3,3
|