From db01cf7b7cb0b72b4e052fb1ebfc96d14b6c9105 Mon Sep 17 00:00:00 2001 From: Zain Jaffal Date: Fri, 7 Apr 2023 23:42:39 +0100 Subject: Recommit "Add an option to print out annotation remark count." Add missing new line for `llvm/docs/CommandGuide/llvm-remarkutil.rst` This reverts commit 0f7fcb4c670fbef2c25b835fdfdd29598c6c13ae. --- llvm/docs/CommandGuide/llvm-remarkutil.rst | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'llvm/docs/CommandGuide/llvm-remarkutil.rst') diff --git a/llvm/docs/CommandGuide/llvm-remarkutil.rst b/llvm/docs/CommandGuide/llvm-remarkutil.rst index 481774a..f3ecb56 100644 --- a/llvm/docs/CommandGuide/llvm-remarkutil.rst +++ b/llvm/docs/CommandGuide/llvm-remarkutil.rst @@ -20,7 +20,7 @@ Subcommands * :ref:`bitstream2yaml_subcommand` - Reserialize bitstream remarks to YAML. * :ref:`yaml2bitstream_subcommand` - Reserialize YAML remarks to bitstream. * :ref:`instruction-count_subcommand` - Output function instruction counts. - + * :ref:`annotation-count_subcommand` - Output remark type count from annotation remarks. .. _bitstream2yaml_subcommand: bitstream2yaml @@ -72,3 +72,24 @@ CSV format is as follows: :: Function,InstructionCount foo,123 + +annotation-count +~~~~~~~~~~~~~~~~~ + +.. program:: llvm-remarkutil annotation-count + +USAGE: :program:`llvm-remarkutil` annotation-count --parser= --annotation-type= -o + +Summary +^^^^^^^ + +Outputs a count for annotation-type `` remark for every function. The count expresses +the number of remark checks inserted at the function. + +Annotation count remarks require AnnotationRemarksPass remarks. + +CSV format is as follows: + +:: + Function,Count + foo,123 -- cgit v1.1