This is an archive of the discontinued LLVM Phabricator instance.

[ObjectYAML][DX] Add dxcontainer2yaml support
ClosedPublic

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

Details

Summary

This change finishes fleshing out the ObjectYAML tools to support
converting DXContainer files into yaml representations.

Depends on D124944

Diff Detail

Event Timeline

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

LGTM.

llvm/tools/obj2yaml/dxcontainer2yaml.cpp
20

Returning a raw pointer? Is this a yaml-ism?

22

Looks like this is accessible via dxcontainer2yaml without a runtime check on the magic? For parsing API surface like this I would usually go with an llvm::Error rather than an assert, since I don't trust API clients to verify the magic.

In this case you're unlikely to have any clients outside obj2yaml though, so this is mostly pedantry on my part. Go with whichever approach you prefer.

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