Path: blob/main/contrib/llvm-project/llvm/lib/Target/BPF/GISel/BPFCallLowering.h
35294 views
//===-- BPFCallLowering.h - Call lowering for GlobalISel --------*- 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_BPF_GISEL_BPFCALLLOWERING_H14#define LLVM_LIB_TARGET_BPF_GISEL_BPFCALLLOWERING_H1516#include "BPFISelLowering.h"17#include "llvm/CodeGen/GlobalISel/CallLowering.h"18#include "llvm/IR/CallingConv.h"1920namespace llvm {2122class BPFTargetLowering;2324class BPFCallLowering : public CallLowering {25public:26BPFCallLowering(const BPFTargetLowering &TLI);27bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val,28ArrayRef<Register> VRegs, FunctionLoweringInfo &FLI,29Register SwiftErrorVReg) const override;30bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F,31ArrayRef<ArrayRef<Register>> VRegs,32FunctionLoweringInfo &FLI) const override;33bool lowerCall(MachineIRBuilder &MIRBuilder,34CallLoweringInfo &Info) const override;35};36} // namespace llvm3738#endif394041