[all-commits] [llvm/llvm-project] 4c7218: [HLSL] Remove unused frontend-generated ID

Chris B via All-commits all-commits at lists.llvm.org
Fri Oct 21 10:41:26 PDT 2022


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

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

  Log Message:
  -----------
  [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




More information about the All-commits mailing list