[PATCH] [RFC][6/17]TILE-Gx: tilegx calling convention support

Jiong WANG wong.kwongyuan.llvm at gmail.com
Mon Mar 11 00:46:17 PDT 2013


1. The first ten words of arguments are passed in r0 through r9.

2. Any arguments beyond that are passed in the “argument space” region of the caller’s stack frame, meaning
the receiving function will find them at sp + 16 on entry.

because tilegx has a reserved 16bytes on the bottom of the stack, we need to lift the arg offset on stack by 16bytes, TileCallingConv.h serve this purpose.

All the other files are the same as other targets, mostly of the ideas are borrowed from Mips (tons of thanks to them).

Please review, thanks.

---
Regards,
Jiong
Tilera Corporation

http://llvm-reviews.chandlerc.com/D516

Files:
  lib/Target/Tile/TileCallingConv.h
  lib/Target/Tile/TileCallingConv.td
  lib/Target/Tile/TileFrameLowering.cpp
  lib/Target/Tile/TileFrameLowering.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D516.1.patch
Type: text/x-patch
Size: 18400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130311/b96e8d99/attachment.bin>


More information about the llvm-commits mailing list