diff options
author | Zain Jaffal <z_jaffal@apple.com> | 2023-04-07 23:42:39 +0100 |
---|---|---|
committer | Zain Jaffal <z_jaffal@apple.com> | 2023-04-07 23:42:39 +0100 |
commit | db01cf7b7cb0b72b4e052fb1ebfc96d14b6c9105 (patch) | |
tree | f9a30fc09157283c1dab52c3b9e453739819e854 /llvm/docs/CommandGuide | |
parent | 0f7fcb4c670fbef2c25b835fdfdd29598c6c13ae (diff) | |
download | llvm-db01cf7b7cb0b72b4e052fb1ebfc96d14b6c9105.zip llvm-db01cf7b7cb0b72b4e052fb1ebfc96d14b6c9105.tar.gz llvm-db01cf7b7cb0b72b4e052fb1ebfc96d14b6c9105.tar.bz2 |
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.
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-remarkutil.rst | 23 |
1 files changed, 22 insertions, 1 deletions
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 <input file> --parser=<bitstream|yaml> --annotation-type=<type> -o <output file> + +Summary +^^^^^^^ + +Outputs a count for annotation-type `<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 |