blob: 02d24397e6da1cbaeec4052f25a66c56caf0e120 [file] [log] [blame]
Chris Lattner5a65b922008-03-17 05:41:48 +00001//===- SparcCallingConv.td - Calling Conventions Sparc -----*- 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//
10// This describes the calling conventions for the Sparc architectures.
11//
12//===----------------------------------------------------------------------===//
13
14//===----------------------------------------------------------------------===//
15// Return Value Calling Conventions
16//===----------------------------------------------------------------------===//
17
18// Sparc 32-bit C return-value convention.
19def RetCC_Sparc32 : CallingConv<[
20 CCIfType<[i32], CCAssignToReg<[I0, I1]>>,
21 CCIfType<[f32], CCAssignToReg<[F0]>>,
22 CCIfType<[f64], CCAssignToReg<[D0]>>
23]>;