[PATCH] D130951: [HLSL] CodeGen hlsl resource binding.

Xiang Li via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 1 16:42:11 PDT 2022


python3kgae created this revision.
python3kgae added reviewers: aaron.ballman, Anastasia, kuhar, bogner, beanz, pow2clk.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

''register(ID, space)'' like register(t3, space1) will be translated into
i32 3, i32 1 as the last 2 operands for resource annotation metadata.

NamedMetadata for CBuffers and SRVs are added as "hlsl.srvs" and "hlsl.cbufs".


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130951

Files:
  clang/lib/CodeGen/CGHLSLRuntime.cpp
  clang/lib/CodeGen/CGHLSLRuntime.h
  clang/test/CodeGenHLSL/builtins/RWBuffer-annotations.hlsl
  clang/test/CodeGenHLSL/cbuf.hlsl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130951.449154.patch
Type: text/x-patch
Size: 7096 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220801/f2266105/attachment-0001.bin>


More information about the cfe-commits mailing list