]> granicus.if.org Git - llvm/commit
[opt-viewer] Add --filter option to select remarks for displaying.
authorFlorian Hahn <flo@fhahn.com>
Wed, 6 Feb 2019 18:43:37 +0000 (18:43 +0000)
committerFlorian Hahn <flo@fhahn.com>
Wed, 6 Feb 2019 18:43:37 +0000 (18:43 +0000)
commit59f81b1e8f354cf50c039d6425d1b756db0b8fb3
tree5645be9474c4e693d51912e12f0ea17a77421d7d
parent939f04bb50cf608efb236aec93f31a6d74e9769a
[opt-viewer] Add --filter option to select remarks for displaying.

This allows limiting the displayed remarks to the ones with names
matching the filter (regular) expression.

Generating html pages for a larger project with optimization remarks can
result in a huge HTML documents and using --filter allows to focus on a
set of interesting remarks.

Reviewers: hfinkel, anemet, thegameg, serge-sans-paille

Reviewed By: anemet

Differential Revision: https://reviews.llvm.org/D57827

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353322 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/opt-viewer/Outputs/filter/basic_or.c.html [new file with mode: 0644]
test/tools/opt-viewer/Outputs/filter/basic_or.h.html [new file with mode: 0644]
test/tools/opt-viewer/Outputs/filter/index.html [new file with mode: 0644]
test/tools/opt-viewer/filter.test [new file with mode: 0644]
tools/opt-viewer/opt-viewer.py
tools/opt-viewer/optpmap.py
tools/opt-viewer/optrecord.py