[LLVMdev] hi, llvm-gcc deal with va_arg() by word alignment.

任坤 hbrenkun at yahoo.cn
Sun Jan 4 03:11:20 PST 2009


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.



      ___________________________________________________________ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090104/45a0386c/attachment.html>


More information about the llvm-dev mailing list