You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:program:`llvm-remarkutil count` counts `remarks <https://llvm.org/docs/Remarks.html>` based on specified properties.
129
+
:program:`llvm-remarkutil count` counts `remarks <https://llvm.org/docs/Remarks.html>`_ based on specified properties.
126
130
By default the tool counts remarks based on how many occur in a source file or function or total for the generated remark file.
127
131
The tool also supports collecting count based on specific remark arguments. The specified arguments should have an integer value to be able to report a count.
128
132
129
133
The tool contains utilities to filter the remark count based on remark name, pass name, argument value and remark type.
130
-
OPTIONS
131
-
-------
134
+
135
+
Options
136
+
^^^^^^^
132
137
133
138
.. option:: --parser=<yaml|bitstream>
134
139
135
140
Select the type of input remark parser. Required.
136
-
* ``yaml``: The tool will parse YAML remarks.
137
-
* ``bitstream``: The tool will parse bitstream remarks.
138
141
139
-
.. option:: --count-by<value>
142
+
* ``yaml`` : The tool will parse YAML remarks.
143
+
* ``bitstream`` : The tool will parse bitstream remarks.
144
+
145
+
.. option:: --count-by=<value>
146
+
140
147
Select option to collect remarks by.
141
-
* ``remark-name``: count how many individual remarks exist.
142
-
* ``arg``: count remarks based on specified arguments passed by --(r)args. The argument value must be a number.
148
+
149
+
* ``remark-name`` : count how many individual remarks exist.
150
+
* ``arg`` : count remarks based on specified arguments passed by --(r)args. The argument value must be a number.
143
151
144
152
.. option:: --group-by=<value>
153
+
145
154
group count of remarks by property.
146
-
* ``source``: Count will be collected per source path. Remarks with no debug location will not be counted.
147
-
* ``function``: Count is collected per function.
148
-
* ``function-with-loc``: Count is collected per function per source. Remarks with no debug location will not be counted.
149
-
* ``Total``: Report a count for the provided remark file.
155
+
156
+
* ``source`` : Count will be collected per source path. Remarks with no debug location will not be counted.
157
+
* ``function`` : Count is collected per function.
158
+
* ``function-with-loc`` : Count is collected per function per source. Remarks with no debug location will not be counted.
159
+
* ``Total`` : Report a count for the provided remark file.
150
160
151
161
.. option:: --args[=arguments]
162
+
152
163
If `count-by` is set to `arg` this flag can be used to collect from specified remark arguments represented as a comma separated string.
153
164
The arguments must have a numeral value to be able to count remarks by
154
165
155
166
.. option:: --rargs[=arguments]
167
+
156
168
If `count-by` is set to `arg` this flag can be used to collect from specified remark arguments using regular expression.
157
169
The arguments must have a numeral value to be able to count remarks by
158
170
159
171
.. option:: --pass-name[=<string>]
172
+
160
173
Filter count by pass name.
161
174
162
175
.. option:: --rpass-name[=<string>]
176
+
163
177
Filter count by pass name using regular expressions.
164
178
165
179
.. option:: --remark-name[=<string>]
180
+
166
181
Filter count by remark name.
167
182
168
183
.. option:: --rremark-name[=<string>]
184
+
169
185
Filter count by remark name using regular expressions.
170
186
171
187
.. option:: --filter-arg-by[=<string>]
188
+
172
189
Filter count by argument value.
173
190
174
191
.. option:: --rfilter-arg-by[=<string>]
192
+
175
193
Filter count by argument value using regular expressions.
176
194
177
195
.. option:: --remark-type=<value>
196
+
178
197
Filter remarks by type with the following options.
198
+
179
199
* ``unknown``
180
200
* ``passed``
181
201
* ``missed``
@@ -210,20 +230,22 @@ compiling a **fixed source** with **differing compilers** or
0 commit comments