This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Refactor DXContainer to support more parts
ClosedPublic

Authored by beanz on Sep 15 2022, 2:55 PM.

Details

Summary

This patch refactors some of the DXContainer Object and YAML code to
make it easier to add more part parsing.

DXContainer has a whole bunch of constant values, so I've added a
DXContainerConstants.def file which will grow with constant
definitions, but starts with just part identifiers. I've also added a
utility to parse the part magic string into an enum, and converted the
code to use that utility and the enum instead of the part literal
string.

Diff Detail

Event Timeline

beanz created this revision.Sep 15 2022, 2:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 2:55 PM
beanz requested review of this revision.Sep 15 2022, 2:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 15 2022, 2:55 PM
beanz added a reviewer: pete.Sep 20 2022, 2:28 PM
lhames accepted this revision.Sep 27 2022, 2:01 PM

LGTM.

This revision is now accepted and ready to land.Sep 27 2022, 2:01 PM
This revision was landed with ongoing or failed builds.Sep 29 2022, 10:15 AM
This revision was automatically updated to reflect the committed changes.