This is an archive of the discontinued LLVM Phabricator instance.

[ObjectYAML][DX] Support yaml2dxcontainer
ClosedPublic

Authored by beanz on May 4 2022, 10:17 AM.

Details

Summary

This patch adds a the first bits of support for a yaml representation
of dxcontainer files.

Since the YAML representation's primary purpose is testing
infrastructure, the yaml representation supports both verbose and a
more friendly format by making computable sizes and offsets optional.
If provided they are validated to be correct, otherwise they are
computed on the fly during emission.

As I expand the format I'll be able to make more size fields optional,
and I will continue to make the format easier to work with.

Depends on D124804

Diff Detail

Event Timeline

beanz created this revision.May 4 2022, 10:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 10:17 AM
beanz requested review of this revision.May 4 2022, 10:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 4 2022, 10:17 AM
lhames accepted this revision.May 17 2022, 10:17 AM

LGTM!

This revision is now accepted and ready to land.May 17 2022, 10:17 AM
This revision was landed with ongoing or failed builds.Jun 1 2022, 1:34 PM
This revision was automatically updated to reflect the committed changes.

Hi, the test DXContainerYAMLTest.cpp is failing on AIX, could you take a look and revert if it takes too long? Thanks

https://lab.llvm.org/buildbot/#/builders/214/builds/1624/steps/6/logs/FAIL__LLVM-Unit__21

beanz added a comment.Jun 1 2022, 7:10 PM

The fix is already in and the bot has picked it up.

The fix is already in and the bot has picked it up.

Thanks!