[LLVMdev] Structs as first class values.
Chris Lattner
clattner at apple.com
Wed Jul 23 17:23:04 PDT 2008
On Jul 23, 2008, at 3:31 PM, David Greene wrote:
> On Wednesday 23 July 2008 15:16, Chris Lattner wrote:
>> On Jul 23, 2008, at 12:58 PM, Chris Lattner wrote:
>>> Again, there is a many to one mapping from C type to LLVM type and
>>> not all C types that map onto the same llvm type are supposed to be
>>> handled the same way.
>>
>> One concrete example is that some ABIs say that _Complex double is
>> returned differently than struct { double r,i; }.
>
> Yes, that's a good point and something I had been missing.
>
> I know that the divide between responsibilities of frontends and
> backends is an endless debate. I tend to side with those who
> advocate for putting as much of the target-specific stuff into the
> backend as possible.
I totally agree, but don't know the right way to do it. Lets talk
about this in person next week!
-Chris
More information about the llvm-dev
mailing list