[LLVMdev] Lowering Call Return

Khaled Mohammed khaled.mohammed at gmail.com
Thu Sep 6 11:09:57 PDT 2012

Thanks for the help.
Vector parameters were flattened due to absence of vector register class. I
was working with Pseudo vector registers, meant for lowering calls args and
returns only. The target does not support vector registers. So the approach
of using Pseudo vector register seemed to complicate the lowering!

Are there any other ways of handling vectors from FE, if the target does
not support vector registers? Has anyone considered converting the vectors
to arrays rather than flattening? May be, do a llvm pass which converts all
the llvm IR vectors to llvm IR arrays.

On Thu, Sep 6, 2012 at 10:48 AM, Krzysztof Parzyszek <
kparzysz at codeaurora.org> wrote:

> On 9/5/2012 5:02 PM, Khaled Mohammed wrote:
>> How about vector parameters?
>> define internal fastcc <4 x float> @add(<4 x float> %a.val, <4 x float>
>> %b.val) nounwind {
>> entry:
>>    %tmp4 = fadd <4 x float> %a.val, %b.val
>>    ret <4 x float> %tmp4
>> }
> That I don't know, but I'd look around TargetCallingConv.td,
> CallingConvLower.h, etc.
> -K
> --
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted
> by The Linux Foundation
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120906/38bbb86d/attachment.html>

More information about the llvm-dev mailing list