[clang] [llvm] [HLSL][SPIRV] Use resource names (PR #143412)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 10 15:05:56 PDT 2025


================
@@ -243,7 +243,7 @@ CGHLSLRuntime::getCreateHandleFromBindingIntrinsic() {
   case llvm::Triple::dxil:
     return std::pair(llvm::Intrinsic::dx_resource_handlefrombinding, true);
   case llvm::Triple::spirv:
-    return std::pair(llvm::Intrinsic::spv_resource_handlefrombinding, false);
+    return std::pair(llvm::Intrinsic::spv_resource_handlefrombinding, true);
----------------
bogner wrote:

I agree. In fact, I think we can go back to defining these getters via `GENERATE_HLSL_INTRINSIC_FUNCTION` and clean up the caller to always assume a name now.

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


More information about the llvm-commits mailing list