2015-07-18 01:05:36 +00:00
|
|
|
//===- WDCCallingConv.td - Calling Conventions WDC65816 ----*- tablegen -*-===//
|
2014-07-07 03:24:07 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This describes the calling conventions for the WDC65816 architectures.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// Return Value Calling Conventions
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
// WDC C return-value convention.
|
|
|
|
def RetCC_WDC : CallingConv<[
|
2015-09-01 03:30:50 +00:00
|
|
|
CCIfType<[i16], CCAssignToReg<[A, X]>>
|
2014-07-07 03:24:07 +00:00
|
|
|
]>;
|
|
|
|
|
|
|
|
// WDC C Calling convention.
|
|
|
|
def CC_WDC : CallingConv<[
|
|
|
|
CCIfType<[i8], CCAssignToStack<1, 1>>,
|
|
|
|
CCIfType<[i16], CCAssignToStack<2, 1>>,
|
|
|
|
CCIfType<[i32, f32], CCAssignToStack<4, 1>>
|
|
|
|
]>;
|
2015-07-18 01:05:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
def CSR_NoRegs : CalleeSavedRegs<(add)>;
|