LLVM  5.0.0
Public Member Functions | Public Attributes | List of all members
llvm::TargetLowering::CallLoweringInfo Struct Reference

This structure contains all information that is necessary for lowering calls. More...

#include "llvm/Target/TargetLowering.h"

Collaboration diagram for llvm::TargetLowering::CallLoweringInfo:
[legend]

Public Member Functions

 CallLoweringInfo (SelectionDAG &DAG)
 
CallLoweringInfo & setDebugLoc (const SDLoc &dl)
 
CallLoweringInfo & setChain (SDValue InChain)
 
CallLoweringInfo & setLibCallee (CallingConv::ID CC, Type *ResultType, SDValue Target, ArgListTy &&ArgsList)
 
CallLoweringInfo & setCallee (CallingConv::ID CC, Type *ResultType, SDValue Target, ArgListTy &&ArgsList)
 
CallLoweringInfo & setCallee (Type *ResultType, FunctionType *FTy, SDValue Target, ArgListTy &&ArgsList, ImmutableCallSite &Call)
 
CallLoweringInfo & setInRegister (bool Value=true)
 
CallLoweringInfo & setNoReturn (bool Value=true)
 
CallLoweringInfo & setVarArg (bool Value=true)
 
CallLoweringInfo & setTailCall (bool Value=true)
 
CallLoweringInfo & setDiscardResult (bool Value=true)
 
CallLoweringInfo & setConvergent (bool Value=true)
 
CallLoweringInfo & setSExtResult (bool Value=true)
 
CallLoweringInfo & setZExtResult (bool Value=true)
 
CallLoweringInfo & setIsPatchPoint (bool Value=true)
 
CallLoweringInfo & setIsPostTypeLegalization (bool Value=true)
 
ArgListTy & getArgs ()
 

Public Attributes

SDValue Chain
 
Type * RetTy = nullptr
 
bool RetSExt: 1
 
bool RetZExt: 1
 
bool IsVarArg: 1
 
bool IsInReg: 1
 
bool DoesNotReturn: 1
 
bool IsReturnValueUsed: 1
 
bool IsConvergent: 1
 
bool IsPatchPoint: 1
 
bool IsTailCall = false
 
bool IsPostTypeLegalization = false
 
unsigned NumFixedArgs = -1
 
CallingConv::ID CallConv = CallingConv::C
 
SDValue Callee
 
ArgListTy Args
 
SelectionDAG & DAG
 
SDLoc DL
 
ImmutableCallSite * CS = nullptr
 
SmallVector< ISD::OutputArg, 32 > Outs
 
SmallVector< SDValue, 32 > OutVals
 
SmallVector< ISD::InputArg, 32 > Ins
 
SmallVector< SDValue, 4 > InVals
 

Detailed Description

This structure contains all information that is necessary for lowering calls.

It is passed to TLI::LowerCallTo when the SelectionDAG builder needs to lower a call, and targets will see this struct in their LowerCall implementation.

Definition at line 2844 of file TargetLowering.h.

Constructor & Destructor Documentation

llvm::TargetLowering::CallLoweringInfo::CallLoweringInfo ( SelectionDAG &  DAG)
inline

Definition at line 2875 of file TargetLowering.h.

Member Function Documentation

ArgListTy& llvm::TargetLowering::CallLoweringInfo::getArgs ( )
inline

Definition at line 2990 of file TargetLowering.h.

References Args.

Referenced by llvm::NVPTXTargetLowering::LowerCall(), and llvm::TargetLowering::LowerCallTo().

CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setCallee ( CallingConv::ID  CC,
Type *  ResultType,
SDValue  Target,
ArgListTy &&  ArgsList 
)
inline
CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setCallee ( Type *  ResultType,
FunctionType *  FTy,
SDValue  Target,
ArgListTy &&  ArgsList,
ImmutableCallSite &  Call 
)
inline
CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setChain ( SDValue  InChain)
inline
CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setConvergent ( bool  Value = true)
inline

Definition at line 2965 of file TargetLowering.h.

References IsConvergent.

Referenced by llvm::SelectionDAGBuilder::LowerCallTo().

CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setDebugLoc ( const SDLoc &  dl)
inline
CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setDiscardResult ( bool  Value = true)
inline

Definition at line 2960 of file TargetLowering.h.

References IsReturnValueUsed.

Referenced by llvm::TargetLowering::makeLibCall().

CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setInRegister ( bool  Value = true)
inline

Definition at line 2940 of file TargetLowering.h.

References IsInReg.

CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setIsPatchPoint ( bool  Value = true)
inline

Definition at line 2980 of file TargetLowering.h.

References IsPatchPoint.

CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setIsPostTypeLegalization ( bool  Value = true)
inline

Definition at line 2985 of file TargetLowering.h.

References IsPostTypeLegalization.

CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setLibCallee ( CallingConv::ID  CC,
Type *  ResultType,
SDValue  Target,
ArgListTy &&  ArgsList 
)
inline
CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setNoReturn ( bool  Value = true)
inline

Definition at line 2945 of file TargetLowering.h.

References DoesNotReturn.

CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setSExtResult ( bool  Value = true)
inline

Definition at line 2970 of file TargetLowering.h.

References RetSExt.

Referenced by llvm::TargetLowering::makeLibCall().

CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setTailCall ( bool  Value = true)
inline
CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setVarArg ( bool  Value = true)
inline

Definition at line 2950 of file TargetLowering.h.

References IsVarArg.

CallLoweringInfo& llvm::TargetLowering::CallLoweringInfo::setZExtResult ( bool  Value = true)
inline

Definition at line 2975 of file TargetLowering.h.

References RetZExt.

Referenced by llvm::TargetLowering::makeLibCall().

Member Data Documentation

ArgListTy llvm::TargetLowering::CallLoweringInfo::Args

Definition at line 2866 of file TargetLowering.h.

Referenced by getArgs(), setCallee(), and setLibCallee().

CallingConv::ID llvm::TargetLowering::CallLoweringInfo::CallConv = CallingConv::C
SDValue llvm::TargetLowering::CallLoweringInfo::Callee
SDValue llvm::TargetLowering::CallLoweringInfo::Chain
ImmutableCallSite* llvm::TargetLowering::CallLoweringInfo::CS = nullptr
SelectionDAG& llvm::TargetLowering::CallLoweringInfo::DAG
SDLoc llvm::TargetLowering::CallLoweringInfo::DL
bool llvm::TargetLowering::CallLoweringInfo::DoesNotReturn
SmallVector<ISD::InputArg, 32> llvm::TargetLowering::CallLoweringInfo::Ins
SmallVector<SDValue, 4> llvm::TargetLowering::CallLoweringInfo::InVals
bool llvm::TargetLowering::CallLoweringInfo::IsConvergent

Definition at line 2853 of file TargetLowering.h.

Referenced by llvm::NVPTXTargetLowering::LowerCall(), and setConvergent().

bool llvm::TargetLowering::CallLoweringInfo::IsInReg
bool llvm::TargetLowering::CallLoweringInfo::IsPatchPoint

Definition at line 2854 of file TargetLowering.h.

Referenced by setIsPatchPoint().

bool llvm::TargetLowering::CallLoweringInfo::IsPostTypeLegalization = false
bool llvm::TargetLowering::CallLoweringInfo::IsReturnValueUsed
bool llvm::TargetLowering::CallLoweringInfo::IsTailCall = false
bool llvm::TargetLowering::CallLoweringInfo::IsVarArg
unsigned llvm::TargetLowering::CallLoweringInfo::NumFixedArgs = -1

Definition at line 2863 of file TargetLowering.h.

Referenced by llvm::TargetLowering::LowerCallTo(), setCallee(), and setLibCallee().

SmallVector<ISD::OutputArg, 32> llvm::TargetLowering::CallLoweringInfo::Outs
SmallVector<SDValue, 32> llvm::TargetLowering::CallLoweringInfo::OutVals
bool llvm::TargetLowering::CallLoweringInfo::RetSExt
Type* llvm::TargetLowering::CallLoweringInfo::RetTy = nullptr
bool llvm::TargetLowering::CallLoweringInfo::RetZExt

The documentation for this struct was generated from the following file: