[clang] [llvm] [HLSL] Add load overload with status (PR #166449)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 11 11:28:20 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]>;
----------------
bogner wrote:
Since we aren't actually generating this ever, and the logic for DirectX has special handling depending on the resource type, it's probably best not to define this intrinsic at this point. @bob80905 was there an existing issue to support `Load(int, out uint)` and `CheckAccessFullyMapped` in SPIR-V, or should we use #166954 (in which case we need to add some detail there)?
https://github.com/llvm/llvm-project/pull/166449
More information about the cfe-commits
mailing list