[all-commits] [llvm/llvm-project] 5dbb92: [HLSL] CodeGen HLSL Resource annotations

Chris B via All-commits all-commits at lists.llvm.org
Mon Aug 1 09:20:07 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5dbb92d8cdf751d5960225e874c27d19597fa65e
  Author: Chris Bieneman <chris.bieneman at me.com>
  Date:   2022-08-01 (Mon, 01 Aug 2022)

  Changed paths:
    M clang/lib/CodeGen/CGDeclCXX.cpp
    M clang/lib/CodeGen/CGHLSLRuntime.cpp
    M clang/lib/CodeGen/CGHLSLRuntime.h
    A clang/test/CodeGenHLSL/builtins/RWBuffer-annotations.hlsl

  Log Message:
  [HLSL] CodeGen HLSL Resource annotations

HLSL Resource types need special annotations that the backend will use
to build out metadata and resource annotations that are required by
DirectX and Vulkan drivers in order to provide correct data bindings
for shader exeuction.

This patch adds some of the required data for unordered-access-views
(UAV) resource binding into the module flags. This data will evolve
over time to cover all the required use cases, but this should get
things started.

Depends on D130018.

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

More information about the All-commits mailing list