[LLVMdev] Fwd: Passing structures by value on Windows
lostfreeman at gmail.com
Sat Jun 5 14:16:22 PDT 2010
---------- Forwarded message ----------
From: lost <lostfreeman at gmail.com>
Subject: Re: [LLVMdev] Passing structures by value on Windows
To: Anton Korobeynikov <anton at korobeynikov.info>
Ok, but how to bitcast structure?
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
> With best regards, Anton Korobeynikov
> Faculty of Mathematics and Mechanics, Saint Petersburg State University
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev