[all-commits] [llvm/llvm-project] 13163d: [HLSL] CodeGen hlsl resource binding.

Xiang Li via All-commits all-commits at lists.llvm.org
Mon Oct 17 14:29:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 13163dd8abc57443bd0e931650a3c64fead5235e
      https://github.com/llvm/llvm-project/commit/13163dd8abc57443bd0e931650a3c64fead5235e
  Author: Xiang Li <python3kgae at outlook.com>
  Date:   2022-10-17 (Mon, 17 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/lib/Target/DirectX/DXILResource.cpp
    M llvm/lib/Target/DirectX/DXILResource.h
    M llvm/test/CodeGen/DirectX/UAVMetadata.ll

  Log Message:
  -----------
  [HLSL] CodeGen hlsl resource binding.

''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".

Reviewed By: beanz

Differential Revision: https://reviews.llvm.org/D130951




More information about the All-commits mailing list