This is an archive of the discontinued LLVM Phabricator instance.

[Take 2:] Make opt-viewer more usable by general developers - part 1/N
Needs ReviewPublic

Authored by OfekShilon on Oct 17 2022, 12:16 PM.

Details

Summary

This is a renewed attempt to submit opt-viewer improvements, originally started at https://reviews.llvm.org/D131518.
Part 1/N is just an addition of an example 1-file cpp project with a build script and a run_optview.sh script.
The current submission includes most of @fhahn comments (clang-format, llvm license header,etc.).

The only request knowingly not addressed yet is to make the small utility script ./opt-viewer/cpp_optimization_example/run_optview.sh create a virtual-env and install dependencies. I'm not sure if this would make it cleaner or dirtier... I think I personally would have been surprised by such side effects for a run of a script which was supposed to just render htmls. Opinions are very welcome.

Diff Detail

Event Timeline

OfekShilon created this revision.Oct 17 2022, 12:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 17 2022, 12:16 PM
OfekShilon requested review of this revision.Oct 17 2022, 12:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 17 2022, 12:16 PM
fhahn added a comment.Nov 14 2022, 2:37 PM

Looks good, but can add a short readme showing how to use it, e.g. what paths need to be specified/set to use the correct clang and so on?

fhahn added a comment.Dec 8 2022, 9:52 AM

reverse ping, any updates? :)

Matt added a subscriber: Matt.Dec 13 2022, 9:28 AM

I recently watched the CppCon talk on this and subsequently found this diff. So, another reverse ping: any update here? :)