[clang] [llvm] [DirectX][SPIRV] Consolidate the use of resource pointers across backends (PR #205433)

Finn Plummer via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 25 09:09:27 PDT 2026


================
@@ -38,7 +38,7 @@ def int_dx_resource_handlefromimplicitbinding
 
 def int_dx_resource_getpointer
     : DefaultAttrsIntrinsic<[llvm_anyptr_ty], [llvm_any_ty, llvm_any_ty],
-                            [IntrReadMem, IntrInaccessibleMemOnly]>;
+                            [IntrConvergent, IntrNoMem]>;
----------------
inbelic wrote:

https://github.com/llvm/llvm-project/pull/193593 attempted to remove some of the restrictions of convergent but failed to account for the case when the resource is written to instead of read from and introduced a regression, as reported by https://github.com/llvm/llvm-project/issues/201901.

As such, we revert the previous commit and mark each of these intrinsics as convergent.

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


More information about the cfe-commits mailing list