[Clang][CSKY] Add support about CSKYABIInfo
authorZi Xuan Wu (Zeson) <zixuan.wu@linux.alibaba.com>
Fri, 20 May 2022 03:59:17 +0000 (11:59 +0800)
committerZi Xuan Wu <zixuan.wu@linux.alibaba.com>
Tue, 31 May 2022 02:53:30 +0000 (10:53 +0800)
commit563cc3fda9a2a35582d274e1d2d66687ecf2fc77
treed5a8dc3f3d37172e23cb20a59fa0a56a908ff7a6
parent5d5aba78dbbee75508f01bcaa69aedb2ab79065a
[Clang][CSKY] Add support about CSKYABIInfo

According to the CSKY ABIv2 document, https://github.com/c-sky/csky-doc/blob/master/C-SKY_V2_CPU_Applications_Binary_Interface_Standards_Manual.pdf
construct the ABIInfo to handle argument passing and return of clang data type. It also includes how to emit and expand VAArg intrinsic.

Differential Revision: https://reviews.llvm.org/D126451
clang/lib/CodeGen/TargetInfo.cpp
clang/test/CodeGen/CSKY/csky-abi.c [new file with mode: 0644]
clang/test/CodeGen/CSKY/csky-hard-abi.c [new file with mode: 0644]
clang/test/CodeGen/CSKY/csky-soft-abi.c [new file with mode: 0644]