[clang] [llvm] [HLSL] Add load overload with status (PR #166449)

Steven Perron via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 7 07:59:53 PST 2025


================
@@ -175,6 +175,9 @@ def int_spv_rsqrt : DefaultAttrsIntrinsic<[LLVMMatchType<0>], [llvm_anyfloat_ty]
   def int_spv_resource_getpointer
       : DefaultAttrsIntrinsic<[llvm_anyptr_ty], [llvm_any_ty, llvm_i32_ty],
                               [IntrNoMem]>;
+  def int_spv_resource_load_with_status
+      : DefaultAttrsIntrinsic<[llvm_anyptr_ty], [llvm_any_ty, llvm_i32_ty, llvm_i32_ty],
+                              [IntrNoMem]>;
----------------
s-perron wrote:

I opened https://github.com/llvm/llvm-project/issues/166954 to track the implementing this in the SPIR-V backend.

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


More information about the llvm-commits mailing list