diff options
author | Helena Kotas <hekotas@microsoft.com> | 2025-09-30 14:24:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-30 14:24:55 -0700 |
commit | b6dfa3d47db74e72a566e0605fb573a8fcea1234 (patch) | |
tree | 05b1c3e41657e981385a649c339f72a9faf04d34 /mlir/lib/Bindings/Python/MainModule.cpp | |
parent | ca84f2aa3be6e46a4dccb1bec56b93f2bb3d8ef0 (diff) | |
download | llvm-b6dfa3d47db74e72a566e0605fb573a8fcea1234.zip llvm-b6dfa3d47db74e72a566e0605fb573a8fcea1234.tar.gz llvm-b6dfa3d47db74e72a566e0605fb573a8fcea1234.tar.bz2 |
[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.
Diffstat (limited to 'mlir/lib/Bindings/Python/MainModule.cpp')
0 files changed, 0 insertions, 0 deletions