[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Target / ARM / ARMCallLowering.h
blob87b18f811747e0910f550412e5ebe22ee6ac1b17
1 //===- llvm/lib/Target/ARM/ARMCallLowering.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.
12 //===----------------------------------------------------------------------===//
14 #ifndef LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_H
15 #define LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_H
17 #include "llvm/ADT/ArrayRef.h"
18 #include "llvm/CodeGen/GlobalISel/CallLowering.h"
19 #include "llvm/IR/CallingConv.h"
20 #include <cstdint>
21 #include <functional>
23 namespace llvm {
25 class ARMTargetLowering;
26 class MachineFunction;
27 class MachineInstrBuilder;
28 class MachineIRBuilder;
29 class Value;
31 class ARMCallLowering : public CallLowering {
32 public:
33 ARMCallLowering(const ARMTargetLowering &TLI);
35 bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val,
36 ArrayRef<Register> VRegs,
37 FunctionLoweringInfo &FLI) const override;
39 bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
40 ArrayRef<ArrayRef<Register>> VRegs,
41 FunctionLoweringInfo &FLI) const override;
43 bool lowerCall(MachineIRBuilder &MIRBuilder,
44 CallLoweringInfo &Info) const override;
46 private:
47 bool lowerReturnVal(MachineIRBuilder &MIRBuilder, const Value *Val,
48 ArrayRef<Register> VRegs,
49 MachineInstrBuilder &Ret) const;
52 } // end namespace llvm
54 #endif // LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_H