summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/opt-viewer
Commit message (Collapse)AuthorAgeFilesLines
* [opt-viewer] Add --filter option to select remarks for displaying.Florian Hahn2019-02-064-0/+609
| | | | | | | | | | | | | | | | | 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 llvm-svn: 353322
* [opt-viewer] Add javascript to expand/hide full message for multiline remarks.Florian Hahn2019-01-256-28/+128
| | | | | | | | | | | | | | | | | | | | | | | This patch adds support for displaying remarks with multiple lines. For such remarks, it creates a hidden div containing the message's lines except the first one in a <pre> tag. It also prepends a link (with '+' as text) to the regular remark line. This link can be used to show/hide the div containing the full remark. In combination with D57159, this allows for better displaying of multiline remarks in the html pages generated by opt-viewer. The Javascript is very simple and should be supported by any recent major browser. Reviewers: hfinkel, anemet, thegameg, serge-sans-paille Reviewed By: anemet Differential Revision: https://reviews.llvm.org/D57167 llvm-svn: 352223
* [opt-viewer] Set title for the source pagesAdam Nemet2018-02-264-0/+4
| | | | llvm-svn: 326125
* Fix some opt-viewer test issues and disable on Windows.Zachary Turner2018-01-051-0/+8
| | | | | | Differential Revision: https://reviews.llvm.org/D41784 llvm-svn: 321905
* [opt-viewer] Render utf-8 characters properly in the generated HTMLAdam Nemet2017-12-147-0/+7
| | | | llvm-svn: 320729
* [opt-viewer] Support unicode characters in function namesAdam Nemet2017-12-145-0/+188
| | | | | | | | | | This is a Swift feature. The output stream for the index page and the source HTML page is utf-8 now. The next patch will add the HTML magic to properly render these characters in the browser. llvm-svn: 320725
* [opt-viewer] Suppress noisy Swift remarksAdam Nemet2017-12-065-0/+340
| | | | | | | | | Most likely, this is not how we want to handle this in the long term. This code should probably be in the Swift repo and somehow plugged into the opt-viewer. This is still however very experimental at this point so I don't want to over-engineer it at this point. llvm-svn: 319902
* Add opt-viewer testingAdam Nemet2017-11-299-0/+1105
| | | | | | | | | | | | | | | | | | | | Detects whether we have the Python modules (pygments, yaml) required by opt-viewer and hooks this up to REQUIRES. This fixes https://bugs.llvm.org/show_bug.cgi?id=34129 (the lack of opt-viewer testing). It's also related to https://github.com/apple/swift/pull/12938 and the idea is to expose LLVM_HAVE_OPT_VIEWER_MODULES to the Swift cmake. Differential Revision: https://reviews.llvm.org/D40202 Fixes since the first commit: 1. Disable syntax highlighting as different versions of pygments generate different HTML 2. Use llvm-cxxfilt from the build llvm-svn: 319324
* Revert "Add opt-viewer testing"Adam Nemet2017-11-299-1105/+0
| | | | | | | | This reverts commit r319188. Breaks when c++filt is not available. llvm-svn: 319262
* Add opt-viewer testingAdam Nemet2017-11-289-0/+1105
| | | | | | | | | | | | | | | Detects whether we have the Python modules (pygments, yaml) required by opt-viewer and hooks this up to REQUIRES. This fixes https://bugs.llvm.org/show_bug.cgi?id=34129 (the lack of opt-viewer testing). It's also related to https://github.com/apple/swift/pull/12938 and the idea is to expose LLVM_HAVE_OPT_VIEWER_MODULES to the Swift cmake. Differential Revision: https://reviews.llvm.org/D40202 llvm-svn: 319188
* Revert "Add opt-viewer testing"Adam Nemet2017-11-289-1115/+0
| | | | | | | | This reverts commit r319073. Bot fails with a mismatch that looks like pygments-generated HTML. llvm-svn: 319146
* Add opt-viewer testingAdam Nemet2017-11-279-0/+1115
Detects whether we have the Python modules (pygments, yaml) required by opt-viewer and hooks this up to REQUIRES. This fixes https://bugs.llvm.org/show_bug.cgi?id=34129 (the lack of opt-viewer testing). It's also related to https://github.com/apple/swift/pull/12938 and the idea is to expose LLVM_HAVE_OPT_VIEWER_MODULES to the Swift cmake. Differential Revision: https://reviews.llvm.org/D40202 llvm-svn: 319073
OpenPOWER on IntegriCloud