LLVM  14.0.0git
RISCVCallLowering.h
Go to the documentation of this file.
1 //===-- RISCVCallLowering.h - Call lowering ---------------------*- 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 /// \file
10 /// This file describes how to lower LLVM calls to machine code calls.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_RISCV_RISCVCALLLOWERING_H
15 #define LLVM_LIB_TARGET_RISCV_RISCVCALLLOWERING_H
16 
20 
21 namespace llvm {
22 
23 class RISCVTargetLowering;
24 
26 
27 public:
29 
30  bool lowerReturn(MachineIRBuilder &MIRBuiler, const Value *Val,
31  ArrayRef<Register> VRegs,
32  FunctionLoweringInfo &FLI) const override;
33 
34  bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
36  FunctionLoweringInfo &FLI) const override;
37 
38  bool lowerCall(MachineIRBuilder &MIRBuilder,
39  CallLoweringInfo &Info) const override;
40 };
41 
42 } // end namespace llvm
43 
44 #endif // LLVM_LIB_TARGET_RISCV_RISCVCALLLOWERING_H
ValueTypes.h
llvm::RISCVCallLowering::lowerReturn
bool lowerReturn(MachineIRBuilder &MIRBuiler, const Value *Val, ArrayRef< Register > VRegs, FunctionLoweringInfo &FLI) const override
This hook behaves as the extended lowerReturn function, but for targets that do not support swifterro...
Definition: RISCVCallLowering.cpp:24
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
CallLowering.h
llvm::Function
Definition: Function.h:62
F
#define F(x, y, z)
Definition: MD5.cpp:56
llvm::RISCVCallLowering::lowerFormalArguments
bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F, ArrayRef< ArrayRef< Register >> VRegs, FunctionLoweringInfo &FLI) const override
This hook must be implemented to lower the incoming (formal) arguments, described by VRegs,...
Definition: RISCVCallLowering.cpp:37
llvm::RISCVCallLowering
Definition: RISCVCallLowering.h:25
Info
Analysis containing CSE Info
Definition: CSEInfo.cpp:27
llvm::MachineIRBuilder
Helper class to build MachineInstr.
Definition: MachineIRBuilder.h:212
llvm::RISCVCallLowering::RISCVCallLowering
RISCVCallLowering(const RISCVTargetLowering &TLI)
Definition: RISCVCallLowering.cpp:21
llvm::FunctionLoweringInfo
FunctionLoweringInfo - This contains information that is global to a function that is used when lower...
Definition: FunctionLoweringInfo.h:52
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: APInt.h:32
CallingConvLower.h
llvm::CallLowering::CallLoweringInfo
Definition: CallLowering.h:101
llvm::RISCVTargetLowering
Definition: RISCVISelLowering.h:295
llvm::CallLowering
Definition: CallLowering.h:43
llvm::Value
LLVM Value Representation.
Definition: Value.h:74
llvm::RISCVCallLowering::lowerCall
bool lowerCall(MachineIRBuilder &MIRBuilder, CallLoweringInfo &Info) const override
This hook must be implemented to lower the given call instruction, including argument and return valu...
Definition: RISCVCallLowering.cpp:48