14 #ifndef LLVM_LIB_TARGET_MIPS_MIPSCALLLOWERING_H 15 #define LLVM_LIB_TARGET_MIPS_MIPSCALLLOWERING_H 21 class MipsTargetLowering;
29 : MIRBuilder(MIRBuilder), MRI(MRI) {}
38 unsigned ArgLocsStartIndex,
const EVT &VT);
54 virtual void assignValueToAddress(
Register ValVReg,
59 unsigned ArgLocsStartIndex,
Register ArgsReg,
86 unsigned OriginalIndex,
93 #endif // LLVM_LIB_TARGET_MIPS_MIPSCALLLOWERING_H A parsed version of the target data layout string in and methods for querying it. ...
This class represents lattice values for constants.
bool assignVRegs(ArrayRef< Register > VRegs, ArrayRef< CCValAssign > ArgLocs, unsigned ArgLocsStartIndex, const EVT &VT)
A description of a memory reference used in the backend.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
MachineRegisterInfo & MRI
MipsCallLowering(const MipsTargetLowering &TLI)
virtual ~MipsHandler()=default
Analysis containing CSE Info
bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F, ArrayRef< ArrayRef< Register >> VRegs) const override
This hook must be implemented to lower the incoming (formal) arguments, described by VRegs...
Helper class to build MachineInstr.
bool lowerReturn(MachineIRBuilder &MIRBuilder, const Value *Val, ArrayRef< Register > VRegs) const override
This hook behaves as the extended lowerReturn function, but for targets that do not support swifterro...
MipsHandler(MachineIRBuilder &MIRBuilder, MachineRegisterInfo &MRI)
CCValAssign - Represent assignment of one arg/retval to a location.
void setLeastSignificantFirst(SmallVectorImpl< Register > &VRegs)
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
MachineIRBuilder & MIRBuilder
bool lowerCall(MachineIRBuilder &MIRBuilder, CallLoweringInfo &Info) const override
This hook must be implemented to lower the given call instruction, including argument and return valu...
LLVM Value Representation.
This file describes how to lower LLVM calls to machine code calls.
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
bool handle(ArrayRef< CCValAssign > ArgLocs, ArrayRef< CallLowering::ArgInfo > Args)
Wrapper class representing virtual and physical registers.