LLVM
23.0.0git
lib
Target
RISCV
RISCVCallingConv.h
Go to the documentation of this file.
1
//===-- RISCVCallingConv.h - RISC-V Custom CC Routines ----------*- C++ -*-===//
2
//
3
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4
// See https://llvm.org/LICENSE.txt for license information.
5
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6
//
7
//===----------------------------------------------------------------------===//
8
//
9
// This file defines the custom routines for the RISC-V Calling Convention.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#include "
MCTargetDesc/RISCVBaseInfo.h
"
14
#include "
llvm/CodeGen/CallingConvLower.h
"
15
16
namespace
llvm
{
17
18
/// This is used for assigining arguments to locations when making calls.
19
CCAssignFn
CC_RISCV
;
20
21
/// This is used for assigning return values to locations when making calls.
22
CCAssignFn
RetCC_RISCV
;
23
24
namespace
RISCV
{
25
26
ArrayRef<MCPhysReg>
getArgGPRs
(
const
RISCVABI::ABI
ABI);
27
28
}
// end namespace RISCV
29
30
}
// end namespace llvm
CallingConvLower.h
RISCVBaseInfo.h
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition
ArrayRef.h:40
llvm::RISCVABI::ABI
ABI
Definition
RISCVBaseInfo.h:665
llvm::RISCV
Definition
RISCVTargetParser.h:27
llvm::RISCV::getArgGPRs
ArrayRef< MCPhysReg > getArgGPRs(const RISCVABI::ABI ABI)
Definition
RISCVCallingConv.cpp:164
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition
FunctionInfo.h:25
llvm::CCAssignFn
bool CCAssignFn(unsigned ValNo, MVT ValVT, MVT LocVT, CCValAssign::LocInfo LocInfo, ISD::ArgFlagsTy ArgFlags, Type *OrigTy, CCState &State)
CCAssignFn - This function assigns a location for Val, updating State to reflect the change.
Definition
CallingConvLower.h:157
llvm::RetCC_RISCV
CCAssignFn RetCC_RISCV
This is used for assigning return values to locations when making calls.
Definition
RISCVCallingConv.h:22
llvm::CC_RISCV
CCAssignFn CC_RISCV
This is used for assigining arguments to locations when making calls.
Definition
RISCVCallingConv.h:19
Generated on
for LLVM by
1.14.0