LLVM  13.0.0git
X86CallLowering.h
Go to the documentation of this file.
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.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_LIB_TARGET_X86_X86CALLLOWERING_H
15 #define LLVM_LIB_TARGET_X86_X86CALLLOWERING_H
16 
18 #include <functional>
19 
20 namespace llvm {
21 
22 template <typename T> class ArrayRef;
23 class DataLayout;
24 class MachineRegisterInfo;
25 class X86TargetLowering;
26 
27 class X86CallLowering : public CallLowering {
28 public:
30 
31  bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val,
32  ArrayRef<Register> VRegs,
33  FunctionLoweringInfo &FLI) const override;
34 
35  bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
37  FunctionLoweringInfo &FLI) const override;
38 
39  bool lowerCall(MachineIRBuilder &MIRBuilder,
40  CallLoweringInfo &Info) const override;
41 };
42 
43 } // end namespace llvm
44 
45 #endif // LLVM_LIB_TARGET_X86_X86CALLLOWERING_H
llvm
Definition: AllocatorList.h:23
CallLowering.h
llvm::Function
Definition: Function.h:61
llvm::X86CallLowering::X86CallLowering
X86CallLowering(const X86TargetLowering &TLI)
Definition: X86CallLowering.cpp:50
llvm::X86CallLowering::lowerCall
bool lowerCall(MachineIRBuilder &MIRBuilder, CallLoweringInfo &Info) const override
This hook must be implemented to lower the given call instruction, including argument and return valu...
Definition: X86CallLowering.cpp:287
llvm::X86CallLowering
Definition: X86CallLowering.h:27
F
#define F(x, y, z)
Definition: MD5.cpp:56
llvm::X86CallLowering::lowerReturn
bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val, ArrayRef< Register > VRegs, FunctionLoweringInfo &FLI) const override
This hook behaves as the extended lowerReturn function, but for targets that do not support swifterro...
Definition: X86CallLowering.cpp:133
llvm::X86TargetLowering
Definition: X86ISelLowering.h:895
Info
Analysis containing CSE Info
Definition: CSEInfo.cpp:27
llvm::MachineIRBuilder
Helper class to build MachineInstr.
Definition: MachineIRBuilder.h:220
llvm::FunctionLoweringInfo
FunctionLoweringInfo - This contains information that is global to a function that is used when lower...
Definition: FunctionLoweringInfo.h:53
llvm::ArrayRef
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: APInt.h:32
llvm::X86CallLowering::lowerFormalArguments
bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F, ArrayRef< ArrayRef< Register >> VRegs, FunctionLoweringInfo &FLI) const override
This hook must be implemented to lower the incoming (formal) arguments, described by VRegs,...
Definition: X86CallLowering.cpp:238
llvm::CallLowering::CallLoweringInfo
Definition: CallLowering.h:95
llvm::CallLowering
Definition: CallLowering.h:43
llvm::Value
LLVM Value Representation.
Definition: Value.h:75