search for: 01db01b7

Displaying 3 results from an estimated 3 matches for "01db01b7".

2016 Mar 28
0
C returning struct by value
On 27 March 2016 at 21:48, Michael Nicolella via llvm-dev <llvm-dev at lists.llvm.org> wrote: > Can someone help me understand why this detail needs to be understood by the frontend, Many of the backends can do automatic demotion to sret, but the front-end still needs to be aware of the issues (particularly around unions, since whether demotion is necessary can depend on more than just
2016 Mar 28
3
C returning struct by value
I'm new to using LLVM and I've started work on a compiler for a language that can interface with C. One thing that caught me off guard was returning a struct from a function by value. It seems that when calling a C function I need to emit llvm ir that, in the caller, emits an alloca for the returned structure, and the C function signature should return void and take a first argument with
2016 Mar 28
3
C returning struct by value
...ty late on and a "%type *sret" > parameter better represents what will actually be happening later on. > > Cheers. > > Tim. > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160328/01db01b7/attachment.html>