[PATCH] D134682: [DirectX] Generate `dx.resources` metadata entry

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 26 15:00:38 PDT 2022


beanz created this revision.
beanz added reviewers: bogner, python3kgae, pow2clk, tex3d.
Herald added subscribers: Anastasia, hiraditya.
Herald added a project: All.
beanz requested review of this revision.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134682

Files:
  llvm/lib/Target/DirectX/CMakeLists.txt
  llvm/lib/Target/DirectX/DXILResource.cpp
  llvm/lib/Target/DirectX/DXILResource.h
  llvm/lib/Target/DirectX/DXILTranslateMetadata.cpp
  llvm/test/CodeGen/DirectX/UAVMetadata.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134682.463035.patch
Type: text/x-patch
Size: 15163 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220926/7b75fed0/attachment.bin>


More information about the llvm-commits mailing list