This is an archive of the discontinued LLVM Phabricator instance.

[llvm-exegesis][NFC] Improve parsing of the YAML files
ClosedPublic

Authored by gchatelet on Oct 4 2018, 1:14 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

gchatelet created this revision.Oct 4 2018, 1:14 AM
courbet added inline comments.Oct 4 2018, 1:28 AM
tools/llvm-exegesis/lib/BenchmarkResult.cpp
90 ↗(On Diff #168234)

what about adding an overload for consumeUnsignedInteger(uint64_t) and delegating to a template<typename T> consumeUnsignedInteger(T) in the cpp file ?

It looks like you're reading/writing hex integer values now - weren't they regular decimals before hand?

It looks like you're reading/writing hex integer values now - weren't they regular decimals before hand?

Nope they were hex before as well.
I tested the analysis on an YAML file written with a previous version, it should be a NFC.

gchatelet updated this revision to Diff 168273.Oct 4 2018, 5:28 AM
  • Address comments
courbet accepted this revision.Oct 4 2018, 5:33 AM
This revision is now accepted and ready to land.Oct 4 2018, 5:33 AM
This revision was automatically updated to reflect the committed changes.