[LLVMdev] hi, llvm-gcc deal with va_arg() by word alignment.
Evan Cheng
evan.cheng at apple.com
Mon Jan 5 00:14:59 PST 2009
Is your llvm-gcc frontend targeting x86? It does not generate target
neutral bitcode.
Evan
On Jan 4, 2009, at 3:11 AM, 任坤 wrote:
> hi,
> I am porting llvm to our embedded cpu.
> By my abi, long long type is aligned by 8 bytes.
> But now llvm-gcc frontend follows x86 abi, generate
> word-alignment LLVM-IR for va_arg().
>
> In some degree, llvm-gcc frontend depends on targets.
> The best solution is llvm-gcc can create va_arg node,
> I can lower it at the backend.
>
> Who can give a temporary solution to make frontend can
> create 8 byte alignment code for long long type?
>
> Thanks
>
> renkun.
>
> 好玩贺卡等你发,邮箱贺卡全新上线!
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090105/4482352b/attachment.html>
More information about the llvm-dev
mailing list