[all-commits] [llvm/llvm-project] 618e50: [DirectX] Generate `dx.resources` metadata entry

Chris B via All-commits all-commits at lists.llvm.org
Tue Oct 4 10:38:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 618e5006a59eb709074bb7e54cdef989f19cb81f
      https://github.com/llvm/llvm-project/commit/618e5006a59eb709074bb7e54cdef989f19cb81f
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-10-04 (Tue, 04 Oct 2022)

  Changed paths:
    M llvm/lib/Target/DirectX/CMakeLists.txt
    A llvm/lib/Target/DirectX/DXILResource.cpp
    A llvm/lib/Target/DirectX/DXILResource.h
    M llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp
    A llvm/test/CodeGen/DirectX/UAVMetadata.ll

  Log Message:
  -----------
  [DirectX] Generate `dx.resources` metadata entry

This code adds initial support for generating the HLSL resources
metadata entries. It has a lot of `FIXMEs` laying around because there
is a lot more work to do here, but this lays a solid groundwork and can
accurately handle some trivial cases.

I've filed a swath of issues covering the deficiencies here and left the
issues in comments so that we can easily follow them.

One big change to make sooner rather than later is to move some of this
code into a new libLLVMFrontendHLSL so that we can share it with the
Clang CodeGen layer.

Reviewed By: python3kgae

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




More information about the All-commits mailing list