LLVM API Documentation

Public Member Functions
llvm::Hexagon_CCState Class Reference

#include <HexagonCallingConvLower.h>

List of all members.

Public Member Functions

 Hexagon_CCState (CallingConv::ID CC, bool isVarArg, const TargetMachine &TM, SmallVectorImpl< CCValAssign > &locs, LLVMContext &c)
void addLoc (const CCValAssign &V)
LLVMContextgetContext () const
const TargetMachinegetTarget () const
unsigned getCallingConv () const
bool isVarArg () const
unsigned getNextStackOffset () const
bool isAllocated (unsigned Reg) const
void AnalyzeFormalArguments (const SmallVectorImpl< ISD::InputArg > &Ins, Hexagon_CCAssignFn Fn, unsigned SretValueInRegs)
void AnalyzeReturn (const SmallVectorImpl< ISD::OutputArg > &Outs, Hexagon_CCAssignFn Fn, unsigned SretValueInRegs)
void AnalyzeCallOperands (const SmallVectorImpl< ISD::OutputArg > &Outs, Hexagon_CCAssignFn Fn, int NonVarArgsParams, unsigned SretValueSize)
void AnalyzeCallOperands (SmallVectorImpl< EVT > &ArgVTs, SmallVectorImpl< ISD::ArgFlagsTy > &Flags, Hexagon_CCAssignFn Fn)
void AnalyzeCallResult (const SmallVectorImpl< ISD::InputArg > &Ins, Hexagon_CCAssignFn Fn, unsigned SretValueInRegs)
void AnalyzeCallResult (EVT VT, Hexagon_CCAssignFn Fn)
unsigned getFirstUnallocated (const unsigned *Regs, unsigned NumRegs) const
unsigned AllocateReg (unsigned Reg)
unsigned AllocateReg (unsigned Reg, unsigned ShadowReg)
 Version of AllocateReg with extra register to be shadowed.
unsigned AllocateReg (const unsigned *Regs, unsigned NumRegs)
unsigned AllocateReg (const unsigned *Regs, const unsigned *ShadowRegs, unsigned NumRegs)
 Version of AllocateReg with list of registers to be shadowed.
unsigned AllocateStack (unsigned Size, unsigned Align)
void HandleByVal (unsigned ValNo, EVT ValVT, EVT LocVT, CCValAssign::LocInfo LocInfo, int MinSize, int MinAlign, ISD::ArgFlagsTy ArgFlags)

Detailed Description

CCState - This class holds information needed while lowering arguments and return values. It captures which registers are already assigned and which stack slots are used. It provides accessors to allocate these values.

Definition at line 46 of file HexagonCallingConvLower.h.


Constructor & Destructor Documentation


Member Function Documentation

AllocateReg - Attempt to allocate one register. If it is not available, return zero. Otherwise, return the register, marking it and any aliases as allocated.

Definition at line 119 of file HexagonCallingConvLower.h.

References isAllocated().

unsigned llvm::Hexagon_CCState::AllocateReg ( unsigned  Reg,
unsigned  ShadowReg 
) [inline]

Version of AllocateReg with extra register to be shadowed.

Definition at line 126 of file HexagonCallingConvLower.h.

References isAllocated().

AllocateReg - Attempt to allocate one of the specified registers. If none are available, return zero. Otherwise, return the first one available, marking it and any aliases as allocated.

Definition at line 136 of file HexagonCallingConvLower.h.

References getFirstUnallocated().

unsigned llvm::Hexagon_CCState::AllocateReg ( const unsigned Regs,
const unsigned ShadowRegs,
unsigned  NumRegs 
) [inline]

Version of AllocateReg with list of registers to be shadowed.

Definition at line 148 of file HexagonCallingConvLower.h.

References getFirstUnallocated().

AllocateStack - Allocate a chunk of stack space with the specified size and alignment.

Definition at line 163 of file HexagonCallingConvLower.h.

Referenced by HandleByVal().

void Hexagon_CCState::AnalyzeCallOperands ( const SmallVectorImpl< ISD::OutputArg > &  Outs,
Hexagon_CCAssignFn  Fn,
int  NonVarArgsParams,
unsigned  SretValueSize 
)

AnalyzeCallOperands - Analyze an ISD::CALL node, incorporating info about the passed values into this state.

Definition at line 131 of file HexagonCallingConvLower.cpp.

References llvm::dbgs(), llvm::CCValAssign::Full, llvm::EVT::getEVTString(), and llvm::SmallVectorTemplateCommon< T, typename >::size().

AnalyzeCallOperands - Same as above except it takes vectors of types and argument flags.

Definition at line 161 of file HexagonCallingConvLower.cpp.

References llvm::dbgs(), llvm::CCValAssign::Full, llvm::EVT::getEVTString(), and llvm::SmallVectorTemplateCommon< T >::size().

AnalyzeCallResult - Analyze the return values of an ISD::CALL node, incorporating info about the passed values into this state.

Definition at line 180 of file HexagonCallingConvLower.cpp.

References llvm::dbgs(), llvm::CCValAssign::Full, llvm::EVT::getEVTString(), and llvm::SmallVectorTemplateCommon< T, typename >::size().

AnalyzeCallResult - Same as above except it's specialized for calls which produce a single value.

Definition at line 197 of file HexagonCallingConvLower.cpp.

References llvm::dbgs(), llvm::CCValAssign::Full, and llvm::EVT::getEVTString().

AnalyzeFormalArguments - Analyze an ISD::FORMAL_ARGUMENTS node, incorporating info about the formals into this state.

Definition at line 66 of file HexagonCallingConvLower.cpp.

References llvm::dbgs(), llvm::CCValAssign::Full, llvm::EVT::getEVTString(), and llvm::SmallVectorTemplateCommon< T, typename >::size().

AnalyzeReturn - Analyze the returned values of an ISD::RET node, incorporating info about the result values into this state.

Definition at line 94 of file HexagonCallingConvLower.cpp.

References addLoc(), llvm::dbgs(), llvm::CCValAssign::Full, llvm::EVT::getEVTString(), llvm::CCValAssign::getReg(), llvm::MVT::i32, llvm::MVT::i64, and llvm::SmallVectorTemplateCommon< T, typename >::size().

Definition at line 65 of file HexagonCallingConvLower.h.

Definition at line 63 of file HexagonCallingConvLower.h.

getFirstUnallocated - Return the first unallocated register in the set, or NumRegs if they are all allocated.

Definition at line 109 of file HexagonCallingConvLower.h.

References isAllocated().

Referenced by AllocateReg().

Definition at line 68 of file HexagonCallingConvLower.h.

Definition at line 64 of file HexagonCallingConvLower.h.

void Hexagon_CCState::HandleByVal ( unsigned  ValNo,
EVT  ValVT,
EVT  LocVT,
CCValAssign::LocInfo  LocInfo,
int  MinSize,
int  MinAlign,
ISD::ArgFlagsTy  ArgFlags 
)

isAllocated - Return true if the specified register (or an alias) is allocated.

Definition at line 72 of file HexagonCallingConvLower.h.

Referenced by AllocateReg(), and getFirstUnallocated().

Definition at line 66 of file HexagonCallingConvLower.h.


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