LLVM  4.0.0
Public Member Functions | List of all members
llvm::AMDGPUCallLowering Class Reference

#include <AMDGPUCallLowering.h>

Inheritance diagram for llvm::AMDGPUCallLowering:
[legend]
Collaboration diagram for llvm::AMDGPUCallLowering:
[legend]

Public Member Functions

 AMDGPUCallLowering (const AMDGPUTargetLowering &TLI)
 
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 virtual register VReg. 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...
 
- Public Member Functions inherited from llvm::CallLowering
 CallLowering (const TargetLowering *TLI)
 
virtual ~CallLowering ()
 
virtual bool lowerCall (MachineIRBuilder &MIRBuilder, const MachineOperand &Callee, const ArgInfo &OrigRet, ArrayRef< ArgInfo > OrigArgs) const
 This hook must be implemented to lower the given call instruction, including argument and return value marshalling. More...
 
virtual bool lowerCall (MachineIRBuilder &MIRBuilder, const CallInst &CI, unsigned ResReg, ArrayRef< unsigned > ArgRegs, std::function< unsigned()> GetCalleeReg) const
 This hook must be implemented to 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 OpNum, const DataLayout &DL, const FuncInfoTy &FuncInfo) const
 
bool handleAssignments (MachineIRBuilder &MIRBuilder, CCAssignFn *AssignFn, ArrayRef< ArgInfo > Args, ValueHandler &Callback) const
 Invoke the AssignFn on each of the given Args and then use Callback to move them to the assigned locations. More...
 

Detailed Description

Definition at line 24 of file AMDGPUCallLowering.h.

Constructor & Destructor Documentation

AMDGPUCallLowering::AMDGPUCallLowering ( const AMDGPUTargetLowering TLI)

Definition at line 28 of file AMDGPUCallLowering.cpp.

Member Function Documentation

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

This hook must be implemented to lower the incoming (formal) arguments, described by Args, for GlobalISel.

Each argument must end up in the related virtual register described by VRegs. In other words, the first argument should end up in VRegs[0], the second in VRegs[1], and so on. MIRBuilder is set to the proper insertion for the argument lowering.

Returns
True if the lowering succeeded, false otherwise.

Reimplemented from llvm::CallLowering.

Definition at line 37 of file AMDGPUCallLowering.cpp.

bool AMDGPUCallLowering::lowerReturn ( MachineIRBuilder MIRBuilder,
const Value Val,
unsigned  VReg 
) const
overridevirtual

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

This hook is used by GlobalISel.

Returns
True if the lowering succeeds, false otherwise.

Reimplemented from llvm::CallLowering.

Definition at line 32 of file AMDGPUCallLowering.cpp.


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