[llvm] Stop including llvm/ADT/DenseMap.h (NFC)
[llvm-project.git] / llvm / lib / Target / X86 / GISel / X86CallLowering.h
blob9067abf060bd910087af65b88640bdc29789d2d6
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 X86TargetLowering;
25 class X86CallLowering : public CallLowering {
26 public:
27 X86CallLowering(const X86TargetLowering &TLI);
29 bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val,
30 ArrayRef<Register> VRegs,
31 FunctionLoweringInfo &FLI) const override;
33 bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
34 ArrayRef<ArrayRef<Register>> VRegs,
35 FunctionLoweringInfo &FLI) const override;
37 bool lowerCall(MachineIRBuilder &MIRBuilder,
38 CallLoweringInfo &Info) const override;
40 bool canLowerReturn(MachineFunction &MF, CallingConv::ID CallConv,
41 SmallVectorImpl<BaseArgInfo> &Outs,
42 bool IsVarArg) const override;
45 } // end namespace llvm
47 #endif // LLVM_LIB_TARGET_X86_X86CALLLOWERING_H