[HLSL] Remove unused frontend-generated ID
authorChris Bieneman <chris.bieneman@me.com>
Fri, 21 Oct 2022 17:08:35 +0000 (12:08 -0500)
committerChris Bieneman <chris.bieneman@me.com>
Fri, 21 Oct 2022 17:41:09 +0000 (12:41 -0500)
commit4c7218e7702651bb8dd2ef7734ca05ac0ada32fd
treefa5866a00f868496298f418124c8870859330b70
parent9b809cc5b69a45601910bf4c60a2ece2f5462a18
[HLSL] Remove unused frontend-generated ID

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.

Reviewed By: python3kgae

Differential Revision: https://reviews.llvm.org/D136271
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