[LLVMdev] Lowering Call Return
Krzysztof Parzyszek
kparzysz at codeaurora.org
Tue Sep 4 11:35:46 PDT 2012
On 9/4/2012 11:16 AM, Khaled Mohammed wrote:
>
> Is there an option to do sret demotion via a register? if yes, do we
> have a Target to see an example implementation?
Hi Khaled,
Check out X86TargetLowering::LowerReturn, and the call to getSRetReturnReg.
The SRetReturnReg looks like a hack (each target that uses it, declares
this variable individually), but that seems to be the current way of
handling it.
-K
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
More information about the llvm-dev
mailing list