[clang] [HLSL] Implement output parameter (PR #101083)
John McCall via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 30 14:58:05 PDT 2024
================
@@ -285,6 +285,13 @@ class CallArgList : public SmallVector<CallArg, 8> {
/// A value to "use" after the writeback, or null.
llvm::Value *ToUse;
+
+ /// An Expression representing a cast from the temporary's type to the
+ /// source l-value's type.
+ const Expr *CastExpr;
----------------
rjmccall wrote:
This comment is no longer correct; consider something like `WritebackExpr`. And maybe the logic for writebacks should simply be that we evaluate this expression if it's present, rather than making a language-mode decision?
https://github.com/llvm/llvm-project/pull/101083
More information about the cfe-commits
mailing list