[LLVMdev] Lowering Call Return

Khaled Mohammed khaled.mohammed at gmail.com
Tue Sep 4 09:16:38 PDT 2012


Hi,

it seems like SelectionDAGBuilder expects returning of vectors
(structures/arrays) to be lowered in either of the two ways:
1. Flatten the complex data types to simple data types, and return them
using registers (done by TargetLowering::LowerCallTo)
2. sret demotion: return the address of the complex data type via a stack
pointer

Is there an option to do sret demotion via a register? if yes, do we have a
Target to see an example implementation?

Thanks
Khaled
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120904/66ac5f94/attachment.html>


More information about the llvm-dev mailing list