[PATCH] D136271: [HLSL] Remove unused frontend-generated ID

Chris Bieneman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 19 10:34:47 PDT 2022


beanz created this revision.
beanz added a reviewer: python3kgae.
Herald added subscribers: Anastasia, hiraditya.
Herald added a project: All.
beanz requested review of this revision.
Herald added projects: clang, LLVM.
Herald added a subscriber: llvm-commits.

As @python3kgae pointed out we're going to want to assign these IDs
after optimization so that we can remove unused resrouces. This patch
just removes the unused ID value from the frontend metadata, clang code
generation, and updates associated test cases.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D136271

Files:
  clang/lib/CodeGen/CGHLSLRuntime.cpp
  clang/lib/CodeGen/CGHLSLRuntime.h
  clang/test/CodeGenHLSL/builtins/RWBuffer-annotations.hlsl
  clang/test/CodeGenHLSL/cbuf.hlsl
  llvm/include/llvm/Frontend/HLSL/HLSLResource.h
  llvm/lib/Frontend/HLSL/HLSLResource.cpp
  llvm/test/CodeGen/DirectX/UAVMetadata.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136271.468961.patch
Type: text/x-patch
Size: 8834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221019/dc83225a/attachment.bin>


More information about the llvm-commits mailing list