[PATCH] D124944: [ObjectYAML][DX] Support yaml2dxcontainer

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 10:17:42 PDT 2022


beanz created this revision.
beanz added reviewers: MaskRay, lhames, serge-sans-paille.
Herald added subscribers: StephenFan, hiraditya, mgorny.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: LLVM.

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 <https://reviews.llvm.org/D124804>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124944

Files:
  llvm/include/llvm/BinaryFormat/DXContainer.h
  llvm/include/llvm/Object/DXContainer.h
  llvm/include/llvm/ObjectYAML/DXContainerYAML.h
  llvm/include/llvm/ObjectYAML/ObjectYAML.h
  llvm/include/llvm/ObjectYAML/yaml2obj.h
  llvm/lib/Object/DXContainer.cpp
  llvm/lib/ObjectYAML/CMakeLists.txt
  llvm/lib/ObjectYAML/DXContainerEmitter.cpp
  llvm/lib/ObjectYAML/DXContainerYAML.cpp
  llvm/lib/ObjectYAML/ObjectYAML.cpp
  llvm/lib/ObjectYAML/yaml2obj.cpp
  llvm/test/tools/obj2yaml/DXContainer/InvalidOffset.yaml
  llvm/test/tools/obj2yaml/DXContainer/InvalidSize.yaml
  llvm/unittests/ObjectYAML/CMakeLists.txt
  llvm/unittests/ObjectYAML/DXContainerYAMLTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124944.427058.patch
Type: text/x-patch
Size: 20158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220504/0209310c/attachment.bin>


More information about the llvm-commits mailing list