[PATCH] D81311: [RFC] LangRef: Define inmem parameter attribute
Matt Arsenault via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 9 13:48:38 PDT 2020
arsenm added a comment.
In D81311#2078235 <https://reviews.llvm.org/D81311#2078235>, @rjmccall wrote:
> I wonder if `byref` would be a better name for this, as a way to say that the object is semantically a direct argument that's being passed by implicit reference.
This is probably a better name, but potentially more easily confused with byval.
As far as switching to just the raw number, I think there's value in being consistent with the other growing family of type-carrying parameter attributes but I don't really care about the type itself. I don't understand inalloca/preallocated well enough to know if those should also really only carry a size.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81311/new/
https://reviews.llvm.org/D81311
More information about the cfe-commits
mailing list