[llvm] [HLSL][DIRECTX] Fixing update counter signature (PR #115913)

Helena Kotas via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 14 01:25:36 PST 2024


================
@@ -38,7 +38,7 @@ def int_dx_typedBufferStore
                             [IntrWriteMem]>;
 
 def int_dx_updateCounter
-    : DefaultAttrsIntrinsic<[], [llvm_any_ty, llvm_i8_ty]>;
+    : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_any_ty, llvm_i8_ty]>;
----------------
hekota wrote:

I just realized that the intrinsic also needs an attribute `IntrInaccessibleMemOrArgMemOnly`. I am editing the same file in my PR so if you won't add it I will soon after.

https://github.com/llvm/llvm-project/pull/115913


More information about the llvm-commits mailing list