LLVM: lib/Target/BPF/GISel/BPFCallLowering.cpp Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
17
18#define DEBUG_TYPE "bpf-call-lowering"
19
20using namespace llvm;
21
24
28 Register SwiftErrorVReg) const {
29 if (!VRegs.empty())
30 return false;
32 return true;
33}
34
39 return VRegs.empty();
40}
41
This file describes how to lower LLVM calls to machine code calls.
This file declares the MachineIRBuilder class.
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
bool empty() const
empty - Check if the array is empty.
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 BPFCallLowering.cpp:35
bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val, ArrayRef< Register > VRegs, FunctionLoweringInfo &FLI, Register SwiftErrorVReg) const override
This hook must be implemented to lower outgoing return values, described by Val, into the specified v...
Definition BPFCallLowering.cpp:25
BPFCallLowering(const BPFTargetLowering &TLI)
Definition BPFCallLowering.cpp:22
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 BPFCallLowering.cpp:42
CallLowering(const TargetLowering *TLI)
FunctionLoweringInfo - This contains information that is global to a function that is used when lower...
Helper class to build MachineInstr.
MachineInstrBuilder buildInstr(unsigned Opcode)
Build and insert = Opcode .
Wrapper class representing virtual and physical registers.
LLVM Value Representation.
This is an optimization pass for GlobalISel generic memory operations.