LLVM 20.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
20namespace llvm {
21
22template <typename T> class ArrayRef;
23class X86TargetLowering;
24
26public:
28
29 bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val,
31 FunctionLoweringInfo &FLI) const override;
32
33 bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
35 FunctionLoweringInfo &FLI) const override;
36
37 bool lowerCall(MachineIRBuilder &MIRBuilder,
38 CallLoweringInfo &Info) const override;
39
42 bool IsVarArg) const override;
43};
44
45} // end namespace llvm
46
47#endif // LLVM_LIB_TARGET_X86_X86CALLLOWERING_H
Analysis containing CSE Info
Definition: CSEInfo.cpp:27
This file describes how to lower LLVM calls to machine code calls.
#define F(x, y, z)
Definition: MD5.cpp:55
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:41
FunctionLoweringInfo - This contains information that is global to a function that is used when lower...
Helper class to build MachineInstr.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: SmallVector.h:586
LLVM Value Representation.
Definition: Value.h:74
bool lowerCall(MachineIRBuilder &MIRBuilder, CallLoweringInfo &Info) const override
This hook must be implemented to lower the given call instruction, including argument and return valu...
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...
bool canLowerReturn(MachineFunction &MF, CallingConv::ID CallConv, SmallVectorImpl< BaseArgInfo > &Outs, bool IsVarArg) const override
This hook must be implemented to check whether the return values described by Outs can fit into the r...
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,...
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
ArrayRef(const T &OneElt) -> ArrayRef< T >