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

This tool is a generic remark counter reporting count based on specified properties. The counter can be used to count remarks individually and filter them based on name, type and pass or count using remark arguments.
23 lines
1.4 KiB
Plaintext
23 lines
1.4 KiB
Plaintext
RUN: not llvm-remarkutil yaml2bitstream %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
|
|
RUN: not llvm-remarkutil instruction-count --parser=yaml %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
|
|
RUN: not llvm-remarkutil annotation-count --parser=yaml --annotation-type=remark %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
|
|
RUN: not llvm-remarkutil count --parser=yaml %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --check-prefix=YAMLPARSER
|
|
RUN: llvm-remarkutil bitstream2yaml %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=BITSTREAM2YAML
|
|
RUN: llvm-remarkutil instruction-count --parser=bitstream %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=SIZEBITSTREAM
|
|
RUN: llvm-remarkutil annotation-count --parser=bitstream --annotation-type=remark %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=ANNOTATIONBITSTREAM
|
|
RUN: llvm-remarkutil count --parser=bitstream %p/Inputs/empty-file -o - 2>&1 | FileCheck %s --allow-empty --check-prefix=COUNTBITSTREAM
|
|
|
|
; YAMLPARSER: error: document root is not of mapping type.
|
|
|
|
; An empty bitstream file is valid.
|
|
; BITSTREAM2YAML-NOT: error
|
|
|
|
; SIZEBITSTREAM-LABEL: Function,InstructionCount
|
|
; SIZEBITSTREAM-EMPTY:
|
|
|
|
; ANNOTATIONBITSTREAM-LABEL: Function,Count
|
|
; ANNOTATIONBITSTREAM-EMPTY:
|
|
|
|
; COUNTBITSTREAM-LABEL: Source,Count
|
|
; COUNTBITSTREAM-EMPTY:
|