1 //===- MBlazeCallingConv.td - Calling Conventions for MBlaze -*- tablegen -*-=//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
9 // This describes the calling conventions for MBlaze architecture.
10 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
13 // MBlaze ABI Calling Convention
14 //===----------------------------------------------------------------------===//
16 def RetCC_MBlaze : CallingConv<[
17 // i32 are returned in registers R3, R4
18 CCIfType<[i32,f32], CCAssignToReg<[R3, R4]>>
21 def CC_MBlaze : CallingConv<[
22 CCIfType<[i32,f32], CCCustom<"CC_MBlaze_AssignReg">>,
23 CCIfType<[i32,f32], CCAssignToStack<4, 4>>