[all-commits] [llvm/llvm-project] b6dfa3: [HLSL][NFC] Add helper struct to simplify dealing ...

Helena Kotas via All-commits all-commits at lists.llvm.org
Tue Sep 30 14:25:16 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b6dfa3d47db74e72a566e0605fb573a8fcea1234
      https://github.com/llvm/llvm-project/commit/b6dfa3d47db74e72a566e0605fb573a8fcea1234
  Author: Helena Kotas <hekotas at microsoft.com>
  Date:   2025-09-30 (Tue, 30 Sep 2025)

  Changed paths:
    A clang/include/clang/AST/HLSLResource.h
    M clang/lib/CodeGen/CGHLSLRuntime.cpp
    M clang/lib/CodeGen/CGHLSLRuntime.h
    M clang/lib/Sema/SemaHLSL.cpp

  Log Message:
  -----------
  [HLSL][NFC] Add helper struct to simplify dealing with resource binding attributes (#161254)

Add new `ResourceBindingAttrs` struct that holds resource binding attributes `HLSLResourceBindingAttr` and `HLSLVkBindingAttr` and provides helper methods to simplify dealing with resource bindings. This code is placed in the AST library to be shared between Sema and CodeGen.

This change has been done in preparation of a third binding attribute coming soon to represent `[[vk::counter_binding()]]`. This new attribute and more helper member functions will be added to `ResourceBindingAttrs` and will be used in both Sema and in CodeGen to implement resource counter initialization.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list