[ORC] Add std::tuple support to SimplePackedSerialization.
[llvm-project.git] / llvm / lib / Target / X86 / X86CallLowering.h
blobac5b92bf4aae522332fbf5214a66d57bc22ecb6b
1 //===- llvm/lib/Target/X86/X86CallLowering.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_X86_X86CALLLOWERING_H
15 #define LLVM_LIB_TARGET_X86_X86CALLLOWERING_H
17 #include "llvm/CodeGen/GlobalISel/CallLowering.h"
18 #include <functional>
20 namespace llvm {
22 template <typename T> class ArrayRef;
23 class DataLayout;
24 class MachineRegisterInfo;
25 class X86TargetLowering;
27 class X86CallLowering : public CallLowering {
28 public:
29 X86CallLowering(const X86TargetLowering &TLI);
31 bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val,
32 ArrayRef<Register> VRegs,
33 FunctionLoweringInfo &FLI) const override;
35 bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
36 ArrayRef<ArrayRef<Register>> VRegs,
37 FunctionLoweringInfo &FLI) const override;
39 bool lowerCall(MachineIRBuilder &MIRBuilder,
40 CallLoweringInfo &Info) const override;
43 } // end namespace llvm
45 #endif // LLVM_LIB_TARGET_X86_X86CALLLOWERING_H