[clang] [HLSL] Implement output parameter (PR #101083)

John McCall via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 15 17:28:05 PDT 2024


================
@@ -7061,6 +7061,67 @@ class ArraySectionExpr : public Expr {
   void setRBracketLoc(SourceLocation L) { RBracketLoc = L; }
 };
 
+/// This class represents temporary values used to represent inout and out
+/// arguments in HLSL. From the callee perspective these parameters are more or
+/// less __restrict__ T&. They are guaranteed to not alias any memory. inout
----------------
rjmccall wrote:

```suggestion
/// less `T & restrict`. They are guaranteed to not alias any memory. inout
```

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


More information about the cfe-commits mailing list