Fixed some bugs in register stack pass.
[llvm/zpu.git] / lib / Target / ZPU / ZPUCallingConv.td
blobd147d70b7495f3347d37a4f4024d792a66142aa3
1 //===- ZPUCallingConv.td - Calling Conventions for ZPU ---*- tablegen -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 // This describes the calling conventions for ZPU architecture.
10 //===----------------------------------------------------------------------===//
13 def CC_ZPU : CallingConv<[
14   // i32 are returned in registers R0
15   CCIfType<[i32], CCAssignToReg<[RETVAL]>>
16 ]>;
18 def RetCC_ZPU : CallingConv<[
19   // i32 are returned in registers R0
20   CCIfType<[i32], CCAssignToReg<[RETVAL]>>
21 ]>;