Hi all,<div>some time ago I asked on LLVMdev how to implement </div><div>passing/returning aggregates by value in registers. I was told it should</div><div>be implemented in FE, but to be honest after some digging in source code</div>

<div>I couldn't find what I need.</div><div><br></div><div>My target's ABI says that aggregates should be padded to a multiple of 32 bit</div><div>and placed in as many stack slots as needed. </div><div>Always the first 8 argument slots are placed in registers and rest on stack.</div>

<div><br></div><div>Return values up to 32 bytes are placed also in up to 8 registers. </div><div>Larger than 32 bytes are returned in a buffer allocated by caller.</div><div><br></div><div>Could anyone give me advice where/how this could be done or where</div>

<div>in the source code I should look?</div><div><br></div><div>Thanks for your help,</div><div>Artur</div>