blob: d2b17c64c9c25ecb0b2dcb21169f23cbe594a607 [file] [log] [blame]
Alex Bradbury89718422017-10-19 21:37:38 +00001//===-- RISCVCallingConv.td - Calling Conventions RISCV ----*- 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 RISCV architecture.
11//
12//===----------------------------------------------------------------------===//
13
Alex Bradburydc31c612017-12-11 12:49:02 +000014// The RISC-V calling convention is handled with custom code in
15// RISCVISelLowering.cpp (CC_RISCV).
Alex Bradbury89718422017-10-19 21:37:38 +000016
17def CSR : CalleeSavedRegs<(add X1, X3, X4, X8, X9, (sequence "X%u", 18, 27))>;
Alex Bradbury74913e12017-11-08 13:31:40 +000018
19// Needed for implementation of RISCVRegisterInfo::getNoPreservedMask()
20def CSR_NoRegs : CalleeSavedRegs<(add)>;