Path: blob/main/contrib/llvm-project/llvm/lib/Target/ARM/ARMCallLowering.h
35269 views
//===- llvm/lib/Target/ARM/ARMCallLowering.h - Call lowering ----*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8/// \file9/// This file describes how to lower LLVM calls to machine code calls.10//11//===----------------------------------------------------------------------===//1213#ifndef LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_H14#define LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_H1516#include "llvm/ADT/ArrayRef.h"17#include "llvm/CodeGen/GlobalISel/CallLowering.h"18#include "llvm/IR/CallingConv.h"19#include <cstdint>20#include <functional>2122namespace llvm {2324class ARMTargetLowering;25class MachineInstrBuilder;26class MachineIRBuilder;27class Value;2829class ARMCallLowering : public CallLowering {30public:31ARMCallLowering(const ARMTargetLowering &TLI);3233bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val,34ArrayRef<Register> VRegs,35FunctionLoweringInfo &FLI) const override;3637bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,38ArrayRef<ArrayRef<Register>> VRegs,39FunctionLoweringInfo &FLI) const override;4041bool lowerCall(MachineIRBuilder &MIRBuilder,42CallLoweringInfo &Info) const override;4344bool enableBigEndian() const override;4546private:47bool lowerReturnVal(MachineIRBuilder &MIRBuilder, const Value *Val,48ArrayRef<Register> VRegs,49MachineInstrBuilder &Ret) const;50};5152} // end namespace llvm5354#endif // LLVM_LIB_TARGET_ARM_ARMCALLLOWERING_H555657