RegAllocGreedy comment.
[oota-llvm.git] / lib / Target / MBlaze / MBlazeCallingConv.td
1 //===- MBlazeCallingConv.td - Calling Conventions for MBlaze -*- 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 MBlaze architecture.
10 //===----------------------------------------------------------------------===//
11
12 //===----------------------------------------------------------------------===//
13 // MBlaze ABI Calling Convention
14 //===----------------------------------------------------------------------===//
15
16 def RetCC_MBlaze : CallingConv<[
17   // i32 are returned in registers R3, R4
18   CCIfType<[i32,f32], CCAssignToReg<[R3, R4]>>
19 ]>;
20
21 def CC_MBlaze : CallingConv<[
22   CCIfType<[i32,f32], CCCustom<"CC_MBlaze_AssignReg">>,
23   CCIfType<[i32,f32], CCAssignToStack<4, 4>>
24 ]>;