[clang] Implement `ByteAddressBuffer` Load/Store methods (PR #176058)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 15 14:53:23 PST 2026


================
@@ -3330,6 +3348,17 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) {
     auto *ResourceTy =
         TheCall->getArg(0)->getType()->castAs<HLSLAttributedResourceType>();
     QualType ReturnType = ResourceTy->getContainedType();
+    // ByteAddressBuffer uses the FunctionDecl return type instead of the
+    // contained type
----------------
hekota wrote:

```suggestion
    // Figure out the return type of the intrinsic. For most resources it
    // is the contained type. For ByteAddressBuffer it is determined by
    // the return value type.
```

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


More information about the cfe-commits mailing list