Alex Bradbury | 8971842 | 2017-10-19 21:37:38 +0000 | [diff] [blame] | 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 | |
Alex Bradbury | dc31c61 | 2017-12-11 12:49:02 +0000 | [diff] [blame] | 14 | // The RISC-V calling convention is handled with custom code in |
| 15 | // RISCVISelLowering.cpp (CC_RISCV). |
Alex Bradbury | 8971842 | 2017-10-19 21:37:38 +0000 | [diff] [blame] | 16 | |
| 17 | def CSR : CalleeSavedRegs<(add X1, X3, X4, X8, X9, (sequence "X%u", 18, 27))>; |
Alex Bradbury | 74913e1 | 2017-11-08 13:31:40 +0000 | [diff] [blame] | 18 | |
| 19 | // Needed for implementation of RISCVRegisterInfo::getNoPreservedMask() |
| 20 | def CSR_NoRegs : CalleeSavedRegs<(add)>; |