[LLVMdev] Lowering Call Return
khaled.mohammed at gmail.com
Tue Sep 4 09:16:38 PDT 2012
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
Is there an option to do sret demotion via a register? if yes, do we have a
Target to see an example implementation?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev