15 #ifndef LLVM_LIB_TARGET_MIPS_MIPSCALLLOWERING_H 16 #define LLVM_LIB_TARGET_MIPS_MIPSCALLLOWERING_H 22 class MipsTargetLowering;
30 : MIRBuilder(MIRBuilder), MRI(MRI) {}
41 virtual unsigned getStackAddress(uint64_t
Size, int64_t
Offset,
44 virtual void assignValueToReg(
unsigned ValVReg,
unsigned PhysReg) = 0;
46 virtual void assignValueToAddress(
unsigned ValVReg,
unsigned Addr,
54 unsigned VReg)
const override;
66 unsigned origIdx,
unsigned partOffs)>;
75 const FunTy &PushBack)
const;
79 void splitToValueTypes(
const ArgInfo &OrigArg,
unsigned OriginalIndex,
86 #endif // LLVM_LIB_TARGET_MIPS_MIPSCALLLOWERING_H Compute iterated dominance frontiers using a linear time algorithm.
static const MCPhysReg VRegs[32]
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
MachineRegisterInfo & MRI
MipsCallLowering(const MipsTargetLowering &TLI)
amdgpu Simplify well known AMD library false Value * Callee
virtual ~MipsHandler()=default
bool lowerFormalArguments(MachineIRBuilder &MIRBuilder, const Function &F, ArrayRef< unsigned > VRegs) const override
This hook must be implemented to lower the incoming (formal) arguments, described by Args...
This class contains a discriminated union of information about pointers in memory operands...
bool assign(const CCValAssign &VA, unsigned vreg)
MipsHandler(MachineIRBuilder &MIRBuilder, MachineRegisterInfo &MRI)
MachineOperand class - Representation of each machine instruction operand.
CCValAssign - Represent assignment of one arg/retval to a location.
MachineRegisterInfo - Keep track of information for virtual and physical registers, including vreg register classes, use/def chains for registers, etc.
MachineIRBuilder & MIRBuilder
bool lowerReturn(MachineIRBuilder &MIRBuiler, const Value *Val, unsigned VReg) const override
This hook must be implemented to lower outgoing return values, described by Val, into the specified v...
LLVM Value Representation.
bool lowerCall(MachineIRBuilder &MIRBuilder, CallingConv::ID CallConv, const MachineOperand &Callee, const ArgInfo &OrigRet, ArrayRef< ArgInfo > OrigArgs) const override
This hook must be implemented to lower the given call instruction, including argument and return valu...
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
This file describes how to lower LLVM calls to machine code calls.
print Print MemDeps of function
constexpr char Args[]
Key for Kernel::Metadata::mArgs.