search for: nicolella

Displaying 5 results from an estimated 5 matches for "nicolella".

2016 Mar 28
3
C returning struct by value
...arget, yes? Is there any current plan to change the way this works, or is it more of a dreamy cleanup item that maybe will get addressed some day? Appreciate the tip. On Mon, Mar 28, 2016 at 9:28 AM, Tim Northover <t.p.northover at gmail.com> wrote: > 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 (particula...
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 29
0
C returning struct by value
On Mon, Mar 28, 2016 at 5:14 PM, Michael Nicolella via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Thanks for the explanation. It's good to hear the situation isn't felt to > be ideal. > > The details here are going to be sensitive to the OS + target that I'm > compiling for, right? So the effort here will be t...
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 whet...
2016 Mar 29
1
C returning struct by value
On Tue, Mar 29, 2016 at 9:17 AM, James Y Knight via llvm-dev <llvm-dev at lists.llvm.org> wrote: > On Mon, Mar 28, 2016 at 5:14 PM, Michael Nicolella via llvm-dev > <llvm-dev at lists.llvm.org> wrote: >> >> Thanks for the explanation. It's good to hear the situation isn't felt to >> be ideal. >> >> The details here are going to be sensitive to the OS + target that I'm >> compiling for, rig...