xref: /freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MipsCallLowering.h (revision e6bfd18d21b225af6a0ed67ceeaf1293b7b9eba5)
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 MipsTargetLowering;
22 
23 class MipsCallLowering : public CallLowering {
24 public:
25   MipsCallLowering(const MipsTargetLowering &TLI);
26 
27   bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val,
28                    ArrayRef<Register> VRegs,
29                    FunctionLoweringInfo &FLI) const override;
30 
31   bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
32                             ArrayRef<ArrayRef<Register>> VRegs,
33                             FunctionLoweringInfo &FLI) const override;
34 
35   bool lowerCall(MachineIRBuilder &MIRBuilder,
36                  CallLoweringInfo &Info) const override;
37 };
38 
39 } // end namespace llvm
40 
41 #endif // LLVM_LIB_TARGET_MIPS_MIPSCALLLOWERING_H
42