1//===-- 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
14// The RISC-V calling convention is handled with custom code in
15// RISCVISelLowering.cpp (CC_RISCV).
16
17def CSR : CalleeSavedRegs<(add X1, X3, X4, X8, X9, (sequence "X%u", 18, 27))>;
18
19// Needed for implementation of RISCVRegisterInfo::getNoPreservedMask()
20def CSR_NoRegs : CalleeSavedRegs<(add)>;
21