[all-commits] [llvm/llvm-project] 129c05: [ObjectYAML][DX] Support yaml2dxcontainer

Chris B via All-commits all-commits at lists.llvm.org
Wed Jun 1 13:34:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 129c056d626986eb95f9724283b8f6106cdde2e9
      https://github.com/llvm/llvm-project/commit/129c056d626986eb95f9724283b8f6106cdde2e9
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-06-01 (Wed, 01 Jun 2022)

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

  Log Message:
  -----------
  [ObjectYAML][DX] Support yaml2dxcontainer

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

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D124944




More information about the All-commits mailing list