1 //===- MipsCallLowering.h ---------------------------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
10 /// This file describes how to lower LLVM calls to machine code calls.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_MIPS_MIPSCALLLOWERING_H
15 #define LLVM_LIB_TARGET_MIPS_MIPSCALLLOWERING_H
17 #include "llvm/CodeGen/GlobalISel/CallLowering.h"
21 class MachineMemOperand
;
22 class MipsTargetLowering
;
24 class MipsCallLowering
: public CallLowering
{
26 MipsCallLowering(const MipsTargetLowering
&TLI
);
28 bool lowerReturn(MachineIRBuilder
&MIRBuilder
, const Value
*Val
,
29 ArrayRef
<Register
> VRegs
,
30 FunctionLoweringInfo
&FLI
) const override
;
32 bool lowerFormalArguments(MachineIRBuilder
&MIRBuilder
, const Function
&F
,
33 ArrayRef
<ArrayRef
<Register
>> VRegs
,
34 FunctionLoweringInfo
&FLI
) const override
;
36 bool lowerCall(MachineIRBuilder
&MIRBuilder
,
37 CallLoweringInfo
&Info
) const override
;
40 } // end namespace llvm
42 #endif // LLVM_LIB_TARGET_MIPS_MIPSCALLLOWERING_H