diff options
author | Steven Perron <stevenperron@google.com> | 2025-10-06 06:49:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-06 06:49:42 -0400 |
commit | 5547c0cff3eec029318317cb263b0ddc37c5bfd0 (patch) | |
tree | db781aac69665172a132d0e8c98bb04ff33a8323 /lldb/test/API/functionalities/inline-sourcefile/TestInlineSourceFiles.py | |
parent | 4b05a12e9c0de38f54a6440a2cfe3741780418aa (diff) | |
download | llvm-5547c0cff3eec029318317cb263b0ddc37c5bfd0.zip llvm-5547c0cff3eec029318317cb263b0ddc37c5bfd0.tar.gz llvm-5547c0cff3eec029318317cb263b0ddc37c5bfd0.tar.bz2 |
[SPIRV] Implement LLVM IR and backend for typed buffer counters (#161425)
This commit implements the backend portion of the typed buffer counter
proposal described in
https://github.com/llvm/wg-hlsl/blob/main/proposals/0023-typed-buffer-counters.md.
This is the second part of the implementation, focusing on the LLVM IR
and SPIR-V backend.
Specifically, this commit implements the "LLVM IR Generation and Backend
Handling"
section of the proposal. This includes:
- Adding the `llvm.spv.resource.counterhandlefromimplicitbinding` and
`llvm.spv.resource.counterhandlefrombinding` intrinsics.
- Implementing the selection of these intrinsics in the SPIRV backend to
generate the correct `OpVariable` and `OpDecorate` instructions for
the counter buffer.
- Handling `IncrementCounter` and `DecrementCounter` via a new
`llvm.spv.resource.updatecounter` intrinsic, which is lowered to
`OpAtomicIAdd`.
- Adding a new test file to verify the implementation.
Contributes to https://github.com/llvm/llvm-project/issues/137032
---------
Co-authored-by: Marcos Maronas <marcos.maronas@intel.com>
Diffstat (limited to 'lldb/test/API/functionalities/inline-sourcefile/TestInlineSourceFiles.py')
0 files changed, 0 insertions, 0 deletions