1 //===- MipsCallLowering.h ---------------------------------------*- 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_MIPS_MIPSCALLLOWERING_H
15 #define LLVM_LIB_TARGET_MIPS_MIPSCALLLOWERING_H
16 
17 #include "llvm/CodeGen/GlobalISel/CallLowering.h"
18 
19 namespace llvm {
20 
21 class MachineMemOperand;
22 class MipsTargetLowering;
23 
24 class MipsCallLowering : public CallLowering {
25 public:
26   MipsCallLowering(const MipsTargetLowering &TLI);
27 
28   bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val,
29                    ArrayRef<Register> VRegs,
30                    FunctionLoweringInfo &FLI) const override;
31 
32   bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
33                             ArrayRef<ArrayRef<Register>> VRegs,
34                             FunctionLoweringInfo &FLI) 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_MIPS_MIPSCALLLOWERING_H
43