Hi,<br><br>it seems like SelectionDAGBuilder expects returning of vectors (structures/arrays) to be lowered in either of the two ways:<br>1. Flatten the complex data types to simple data types, and return them using registers (done by TargetLowering::LowerCallTo)<br>

2. sret demotion: return the address of the complex data type via a stack pointer<br><br>Is there an option to do sret demotion via a register? if yes, do we have a Target to see an example implementation?<br><br>Thanks<br>

Khaled<br>