This is an archive of the discontinued LLVM Phabricator instance.

[llvm-exegesis] Analysis output uses HTML.
ClosedPublic

Authored by courbet on May 22 2018, 2:41 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

courbet created this revision.May 22 2018, 2:41 AM

Sample output:

lebedev.ri added inline comments.
tools/llvm-exegesis/lib/Analysis.cpp
28 ↗(On Diff #147969)

This should take StringRef, not std::string

45 ↗(On Diff #147969)

This should take StringRef, not std::string

courbet updated this revision to Diff 147972.May 22 2018, 2:49 AM
courbet marked 2 inline comments as done.
  • Pass parameters by StringRef instead of sts::string
gchatelet requested changes to this revision.May 22 2018, 5:34 AM

It might be worth splitting this file if it becomes too big.

tools/llvm-exegesis/lib/Clustering.cpp
172 ↗(On Diff #147972)

Can we try to leverage std::tie here?

const bool IsValid = isValid();
const bool OtherIsValid = Other.isValid();
return std::tie(IsValid, Id) < std::tie(OtherIsValid, Other.Id);
This revision now requires changes to proceed.May 22 2018, 5:34 AM
courbet updated this revision to Diff 147987.May 22 2018, 5:43 AM
  • Pick private constants to make ordering trivial.
courbet marked an inline comment as done.May 22 2018, 5:46 AM

It might be worth splitting this file if it becomes too big.

I think 300 lines is still OK :D

tools/llvm-exegesis/lib/Clustering.cpp
172 ↗(On Diff #147972)

I've made the ordering simpler.

gchatelet accepted this revision.May 22 2018, 5:50 AM
This revision is now accepted and ready to land.May 22 2018, 5:50 AM
This revision was automatically updated to reflect the committed changes.
courbet marked an inline comment as done.