[LLVMdev] Wrong calling convention?

Jonathan S. Shapiro shap at eros-os.com
Wed Mar 26 12:48:17 PDT 2008


On Wed, 2008-03-26 at 19:56 +0300, Anton Korobeynikov wrote:
> Usually, special rules are applied for returning struct, if its size is
> small enough. So you can definitely find something small returned via
> registers. This is frontend job to select how to pass such object.

It is true that many calling conventions optimize small structure
return. It is the front end's job to *implement* this. It is the
responsibility of the calling convention to *specify* this. The front
end must comply with the calling convention, or separate compilation is
compromised.


shap




More information about the llvm-dev mailing list