XCoreCallingConv.td (208954) | XCoreCallingConv.td (218893) |
---|---|
1//===- XCoreCallingConv.td - Calling Conventions for XCore -*- 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//===----------------------------------------------------------------------===// --- 10 unchanged lines hidden (view full) --- 19 20//===----------------------------------------------------------------------===// 21// XCore Argument Calling Conventions 22//===----------------------------------------------------------------------===// 23def CC_XCore : CallingConv<[ 24 // Promote i8/i16 arguments to i32. 25 CCIfType<[i8, i16], CCPromoteToType<i32>>, 26 | 1//===- XCoreCallingConv.td - Calling Conventions for XCore -*- 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//===----------------------------------------------------------------------===// --- 10 unchanged lines hidden (view full) --- 19 20//===----------------------------------------------------------------------===// 21// XCore Argument Calling Conventions 22//===----------------------------------------------------------------------===// 23def CC_XCore : CallingConv<[ 24 // Promote i8/i16 arguments to i32. 25 CCIfType<[i8, i16], CCPromoteToType<i32>>, 26 |
27 // The 'nest' parameter, if any, is passed in R11. 28 CCIfNest<CCAssignToReg<[R11]>>, 29 |
|
27 // The first 4 integer arguments are passed in integer registers. 28 CCIfType<[i32], CCAssignToReg<[R0, R1, R2, R3]>>, 29 30 // Integer values get stored in stack slots that are 4 bytes in 31 // size and 4-byte aligned. 32 CCIfType<[i32], CCAssignToStack<4, 4>> 33]>; | 30 // The first 4 integer arguments are passed in integer registers. 31 CCIfType<[i32], CCAssignToReg<[R0, R1, R2, R3]>>, 32 33 // Integer values get stored in stack slots that are 4 bytes in 34 // size and 4-byte aligned. 35 CCIfType<[i32], CCAssignToStack<4, 4>> 36]>; |