[LLVMdev] Fwd: Passing structures by value on Windows

lost lostfreeman at gmail.com
Sat Jun 5 14:16:22 PDT 2010


---------- Forwarded message ----------
From: lost <lostfreeman at gmail.com>
Date: 2010/6/5
Subject: Re: [LLVMdev] Passing structures by value on Windows
To: Anton Korobeynikov <anton at korobeynikov.info>


Ok, but how to bitcast structure?
Documentation<http://llvm.org/docs/LangRef.html#i_bitcast>says that
bitcast does not applicable to aggregate values.


2010/6/3 Anton Korobeynikov <anton at korobeynikov.info>:
>> Is this documented somethere?
> This is the standard assumption. The calling convention can be complex
> enough and operate with the language-dependent definitions (e.g. "C"
> structs, etc.), thus frontend should lower such constructs as needed.
>
> For reference, normal x86-64 ABI has pretty complex rules wrt passing
> aggregates by value. You might want to look into llvm-gcc as an
> example.
>
> --
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100606/e08dcd1a/attachment.html>


More information about the llvm-dev mailing list