mirror of
https://github.com/jeremysrand/llvm-65816.git
synced 2024-09-29 09:57:27 +00:00
31 lines
1.0 KiB
TableGen
31 lines
1.0 KiB
TableGen
//===- WDCCallingConv.td - Calling Conventions WDC65816 ----*- tablegen -*-===//
|
|
//
|
|
// 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<[
|
|
CCIfType<[i16], CCAssignToReg<[A, X]>>
|
|
]>;
|
|
|
|
// WDC C Calling convention.
|
|
def CC_WDC : CallingConv<[
|
|
CCIfType<[i8], CCAssignToStack<1, 1>>,
|
|
CCIfType<[i16], CCAssignToStack<2, 1>>,
|
|
CCIfType<[i32, f32], CCAssignToStack<4, 1>>
|
|
]>;
|
|
|
|
|
|
def CSR_NoRegs : CalleeSavedRegs<(add)>; |