[clang] [llvm] [HLSL] Add `Increment`/`DecrementCounter` methods to structured buffers (PR #114148)
Tex Riddell via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 7 18:06:15 PST 2024
================
@@ -35,6 +35,9 @@ def int_dx_typedBufferLoad_checkbit
def int_dx_typedBufferStore
: DefaultAttrsIntrinsic<[], [llvm_any_ty, llvm_i32_ty, llvm_anyvector_ty]>;
+def int_dx_bufferUpdateCounter
+ : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_any_ty, llvm_i32_ty], [IntrWriteMem]>;
----------------
tex3d wrote:
No attribute would indicate may read/write memory. However, what about `IntrInaccessibleMemOrArgMemOnly`? I wonder if that attribute would more accurately capture what we want. This counter memory is unique and cannot alias any other memory operations in the module.
https://github.com/llvm/llvm-project/pull/114148
More information about the cfe-commits
mailing list