LLVM  8.0.1
Public Member Functions | List of all members
llvm::ARMCallLowering Class Reference

#include "Target/ARM/ARMCallLowering.h"

Inheritance diagram for llvm::ARMCallLowering:
Inheritance graph
[legend]
Collaboration diagram for llvm::ARMCallLowering:
Collaboration graph
[legend]

Public Member Functions

 ARMCallLowering (const ARMTargetLowering &TLI)
 
bool lowerReturn (MachineIRBuilder &MIRBuilder, const Value *Val, ArrayRef< unsigned > VRegs) const override
 This hook must be implemented to lower outgoing return values, described by Val, into the specified virtual registers VRegs. More...
 
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, for GlobalISel. More...
 
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 value marshalling. More...
 
- Public Member Functions inherited from llvm::CallLowering
 CallLowering (const TargetLowering *TLI)
 
virtual ~CallLowering ()=default
 
bool lowerCall (MachineIRBuilder &MIRBuilder, ImmutableCallSite CS, unsigned ResReg, ArrayRef< unsigned > ArgRegs, std::function< unsigned()> GetCalleeReg) const
 Lower the given call instruction, including argument and return value marshalling. More...
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::CallLowering
const TargetLoweringgetTLI () const
 Getter for generic TargetLowering class. More...
 
template<class XXXTargetLowering >
const XXXTargetLowering * getTLI () const
 Getter for target specific TargetLowering class. More...
 
template<typename FuncInfoTy >
void setArgFlags (ArgInfo &Arg, unsigned OpIdx, const DataLayout &DL, const FuncInfoTy &FuncInfo) const
 
bool handleAssignments (MachineIRBuilder &MIRBuilder, ArrayRef< ArgInfo > Args, ValueHandler &Handler) const
 Invoke Handler::assignArg on each of the given Args and then use Callback to move them to the assigned locations. More...
 

Detailed Description

Definition at line 32 of file ARMCallLowering.h.

Constructor & Destructor Documentation

◆ ARMCallLowering()

ARMCallLowering::ARMCallLowering ( const ARMTargetLowering TLI)

Definition at line 53 of file ARMCallLowering.cpp.

Member Function Documentation

◆ lowerCall()

bool ARMCallLowering::lowerCall ( MachineIRBuilder MIRBuilder,
CallingConv::ID  CallConv,
const MachineOperand Callee,
const ArgInfo OrigRet,
ArrayRef< ArgInfo OrigArgs 
) const
overridevirtual

This hook must be implemented to lower the given call instruction, including argument and return value marshalling.

CallConv is the calling convention to be used for the call.

Callee is the destination of the call. It should be either a register, globaladdress, or externalsymbol.

ResTy is the type returned by the function

ResReg is the generic virtual register that the returned value should be lowered into.

ArgTys is a list of the types each member of ArgRegs has; used by the target to decide which register/stack slot should be allocated.

ArgRegs is a list of virtual registers containing each argument that needs to be passed.

Returns
true if the lowering succeeded, false otherwise.

Reimplemented from llvm::CallLowering.

Definition at line 521 of file ARMCallLowering.cpp.

References llvm::MachineInstrBuilder::add(), llvm::MachineInstrBuilder::addImm(), llvm::ARMCC::AL, Arg, llvm::MachineIRBuilder::buildInstr(), llvm::MachineIRBuilder::buildInstrNoInsert(), llvm::MachineIRBuilder::buildMerge(), llvm::MachineIRBuilder::buildUnmerge(), llvm::SmallVectorImpl< T >::clear(), llvm::constrainOperandRegClass(), llvm::SmallVectorBase::empty(), llvm::MachineFunction::getDataLayout(), llvm::MachineIRBuilder::getMF(), llvm::MachineOperand::getReg(), llvm::MachineFunction::getRegInfo(), llvm::MachineFunction::getSubtarget(), llvm::CallLowering::handleAssignments(), llvm::MachineIRBuilder::insertInstr(), llvm::MachineOperand::isReg(), isSupportedType(), isThumb(), llvm::Type::isVoidTy(), MRI, llvm::predOps(), llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::CallLowering::ArgInfo::Reg, Reg, llvm::SmallVectorBase::size(), TRI, and llvm::CallLowering::ArgInfo::Ty.

◆ lowerFormalArguments()

bool ARMCallLowering::lowerFormalArguments ( MachineIRBuilder MIRBuilder,
const Function F,
ArrayRef< unsigned VRegs 
) const
overridevirtual

◆ lowerReturn()

bool ARMCallLowering::lowerReturn ( MachineIRBuilder MIRBuilder,
const Value Val,
ArrayRef< unsigned VRegs 
) const
overridevirtual

This hook must be implemented to lower outgoing return values, described by Val, into the specified virtual registers VRegs.

This hook is used by GlobalISel.

Returns
True if the lowering succeeds, false otherwise.

Reimplemented from llvm::CallLowering.

Definition at line 280 of file ARMCallLowering.cpp.

References llvm::MachineInstrBuilder::add(), llvm::MachineBasicBlock::addLiveIn(), llvm::ARMCC::AL, Arg, assert(), llvm::MachineIRBuilder::buildCopy(), llvm::MachineIRBuilder::buildFrameIndex(), llvm::MachineIRBuilder::buildInstrNoInsert(), llvm::MachineIRBuilder::buildLoad(), llvm::MachineIRBuilder::buildMerge(), llvm::MachineIRBuilder::buildTrunc(), llvm::MachineFrameInfo::CreateFixedObject(), llvm::MachineRegisterInfo::createGenericVirtualRegister(), llvm::ArrayRef< T >::empty(), llvm::MVT::f64, llvm::MachinePointerInfo::getAddrSpace(), llvm::MachinePointerInfo::getFixedStack(), llvm::MachineFunction::getFrameInfo(), llvm::CCValAssign::getLocInfo(), llvm::CCValAssign::getLocReg(), llvm::CCValAssign::getLocVT(), llvm::MachineFunction::getMachineMemOperand(), llvm::MachineIRBuilder::getMBB(), llvm::MachineIRBuilder::getMF(), llvm::ARMSubtarget::getReturnOpcode(), llvm::MVT::getSizeInBits(), llvm::MachineFunction::getSubtarget(), llvm::MachineRegisterInfo::getType(), llvm::CCValAssign::getValNo(), llvm::CCValAssign::getValVT(), llvm::MachineIRBuilder::insertInstr(), llvm::CCValAssign::isRegLoc(), llvm::LLT::isScalar(), llvm::MachineMemOperand::MOLoad, MRI, llvm::CCValAssign::needsCustom(), llvm::LLT::pointer(), llvm::predOps(), llvm::CallLowering::ArgInfo::Reg, llvm::LLT::scalar(), llvm::CCValAssign::SExt, Size, llvm::ARM_MB::ST, std::swap(), and llvm::CCValAssign::ZExt.


The documentation for this class was generated from the following files: