LLVM 20.0.0git
ARMCallLowering.h
Go to the documentation of this file.
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.
11//
12//===----------------------------------------------------------------------===//
13
14#ifndef LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_H
15#define LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_H
16
17#include "llvm/ADT/ArrayRef.h"
19#include "llvm/IR/CallingConv.h"
20#include <cstdint>
21#include <functional>
22
23namespace llvm {
24
25class ARMTargetLowering;
26class MachineInstrBuilder;
27class MachineIRBuilder;
28class Value;
29
31public:
33
34 bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val,
36 FunctionLoweringInfo &FLI) const override;
37
38 bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,
40 FunctionLoweringInfo &FLI) const override;
41
42 bool lowerCall(MachineIRBuilder &MIRBuilder,
43 CallLoweringInfo &Info) const override;
44
45private:
46 bool lowerReturnVal(MachineIRBuilder &MIRBuilder, const Value *Val,
48 MachineInstrBuilder &Ret) const;
49};
50
51} // end namespace llvm
52
53#endif // LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_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
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 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,...
bool lowerCall(MachineIRBuilder &MIRBuilder, CallLoweringInfo &Info) const override
This hook must be implemented to lower the given call instruction, including argument and return valu...
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.
LLVM Value Representation.
Definition: Value.h:74
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18