LLVM  10.0.0svn
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) const override;
32 
33  bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
34  ArrayRef<ArrayRef<Register>> VRegs) const override;
35 
36  bool lowerCall(MachineIRBuilder &MIRBuilder,
37  CallLoweringInfo &Info) const override;
38 };
39 
40 } // end namespace llvm
41 
42 #endif // LLVM_LIB_TARGET_RISCV_RISCVCALLLOWERING_H
bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F, ArrayRef< ArrayRef< Register >> VRegs) const override
This hook must be implemented to lower the incoming (formal) arguments, described by VRegs...
This class represents lattice values for constants.
Definition: AllocatorList.h:23
bool lowerCall(MachineIRBuilder &MIRBuilder, CallLoweringInfo &Info) const override
This hook must be implemented to lower the given call instruction, including argument and return valu...
F(f)
bool lowerReturn(MachineIRBuilder &MIRBuiler, const Value *Val, ArrayRef< Register > VRegs) const override
This hook behaves as the extended lowerReturn function, but for targets that do not support swifterro...
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Definition: APInt.h:32
Analysis containing CSE Info
Definition: CSEInfo.cpp:20
Helper class to build MachineInstr.
RISCVCallLowering(const RISCVTargetLowering &TLI)
LLVM Value Representation.
Definition: Value.h:73
This file describes how to lower LLVM calls to machine code calls.