[cfe-dev] pass-by-value aggregates - using the callee's frame
David Blaikie
dblaikie at gmail.com
Wed Jul 3 07:51:13 PDT 2013
I believe (assuming you're talking about bit-copiable aggregates (not C++
types with non-trivial copy)) this is handled in Clang's irgen by using the
'byval' llvm ir attribute. I don't recall the specifics, but if shouldn't
be too hard to find some handling of that in there.
On Jul 3, 2013 12:44 AM, "Robert Lytton" <robert at xmos.com> wrote:
> Hi,
>
> I'm adding an XCore target front end.
> The XCore ABI is the same as the DefaultABIInfo ... almost.
>
> One outstanding issue is the need to copy pass-by-value aggregates into
> the callee's stack-frame during the prolog.
> Any advise, suggestions or direction as to where to look
> (CodeGenFunction::EmitFunctionProlog()? ) most welcome.
>
> robert
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130703/d2547a92/attachment.html>
More information about the cfe-dev
mailing list