LLVM  13.0.0git
Public Types | Public Member Functions | Static Public Member Functions | List of all members
llvm::CCValAssign Class Reference

CCValAssign - Represent assignment of one arg/retval to a location. More...

#include "llvm/CodeGen/CallingConvLower.h"

Public Types

enum  LocInfo {
  Full, SExt, ZExt, AExt,
  SExtUpper, ZExtUpper, AExtUpper, BCvt,
  Trunc, VExt, FPExt, Indirect
}
 

Public Member Functions

void convertToReg (unsigned RegNo)
 
void convertToMem (unsigned Offset)
 
unsigned getValNo () const
 
MVT getValVT () const
 
bool isRegLoc () const
 
bool isMemLoc () const
 
bool needsCustom () const
 
Register getLocReg () const
 
unsigned getLocMemOffset () const
 
unsigned getExtraInfo () const
 
MVT getLocVT () const
 
LocInfo getLocInfo () const
 
bool isExtInLoc () const
 
bool isUpperBitsInLoc () const
 

Static Public Member Functions

static CCValAssign getReg (unsigned ValNo, MVT ValVT, unsigned RegNo, MVT LocVT, LocInfo HTP)
 
static CCValAssign getCustomReg (unsigned ValNo, MVT ValVT, unsigned RegNo, MVT LocVT, LocInfo HTP)
 
static CCValAssign getMem (unsigned ValNo, MVT ValVT, unsigned Offset, MVT LocVT, LocInfo HTP)
 
static CCValAssign getCustomMem (unsigned ValNo, MVT ValVT, unsigned Offset, MVT LocVT, LocInfo HTP)
 
static CCValAssign getPending (unsigned ValNo, MVT ValVT, MVT LocVT, LocInfo HTP, unsigned ExtraInfo=0)
 

Detailed Description

CCValAssign - Represent assignment of one arg/retval to a location.

Definition at line 33 of file CallingConvLower.h.

Member Enumeration Documentation

◆ LocInfo

Enumerator
Full 
SExt 
ZExt 
AExt 
SExtUpper 
ZExtUpper 
AExtUpper 
BCvt 
Trunc 
VExt 
FPExt 
Indirect 

Definition at line 35 of file CallingConvLower.h.

Member Function Documentation

◆ convertToMem()

void llvm::CCValAssign::convertToMem ( unsigned  Offset)
inline

Definition at line 137 of file CallingConvLower.h.

References Offset.

◆ convertToReg()

void llvm::CCValAssign::convertToReg ( unsigned  RegNo)
inline

Definition at line 132 of file CallingConvLower.h.

◆ getCustomMem()

static CCValAssign llvm::CCValAssign::getCustomMem ( unsigned  ValNo,
MVT  ValVT,
unsigned  Offset,
MVT  LocVT,
LocInfo  HTP 
)
inlinestatic

◆ getCustomReg()

static CCValAssign llvm::CCValAssign::getCustomReg ( unsigned  ValNo,
MVT  ValVT,
unsigned  RegNo,
MVT  LocVT,
LocInfo  HTP 
)
inlinestatic

◆ getExtraInfo()

unsigned llvm::CCValAssign::getExtraInfo ( ) const
inline

Definition at line 152 of file CallingConvLower.h.

Referenced by llvm::CCState::resultsCompatible().

◆ getLocInfo()

LocInfo llvm::CCValAssign::getLocInfo ( ) const
inline

◆ getLocMemOffset()

unsigned llvm::CCValAssign::getLocMemOffset ( ) const
inline

◆ getLocReg()

Register llvm::CCValAssign::getLocReg ( ) const
inline

◆ getLocVT()

MVT llvm::CCValAssign::getLocVT ( ) const
inline

Definition at line 153 of file CallingConvLower.h.

Referenced by llvm::CallLowering::IncomingValueHandler::assignValueToReg(), CC_RISCVAssign2XLen(), convertLocVTToValVT(), convertValVTToLocVT(), llvm::CallLowering::ValueHandler::extendRegister(), fixupVariableFloatArgs(), getStackValueStoreSizeHack(), llvm::CallLowering::handleAssignments(), llvm::VETargetLowering::LowerCall(), llvm::HexagonTargetLowering::LowerCall(), llvm::SITargetLowering::LowerCall(), llvm::RISCVTargetLowering::LowerCall(), llvm::SystemZTargetLowering::LowerCall(), llvm::SparcTargetLowering::LowerCall_32(), llvm::SparcTargetLowering::LowerCall_64(), llvm::SITargetLowering::LowerCallResult(), llvm::R600TargetLowering::LowerFormalArguments(), llvm::VETargetLowering::LowerFormalArguments(), llvm::HexagonTargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerFormalArguments(), llvm::RISCVTargetLowering::LowerFormalArguments(), llvm::SystemZTargetLowering::LowerFormalArguments(), llvm::SparcTargetLowering::LowerFormalArguments_32(), llvm::SparcTargetLowering::LowerFormalArguments_64(), llvm::VETargetLowering::LowerReturn(), llvm::HexagonTargetLowering::LowerReturn(), llvm::SITargetLowering::LowerReturn(), llvm::RISCVTargetLowering::LowerReturn(), llvm::SystemZTargetLowering::LowerReturn(), llvm::SparcTargetLowering::LowerReturn_32(), llvm::SparcTargetLowering::LowerReturn_64(), MatchingStackOffset(), setLocInfo(), unpackF64OnRV32DSoftABI(), UnpackFromArgumentSlot(), unpackFromMemLoc(), and unpackFromRegLoc().

◆ getMem()

static CCValAssign llvm::CCValAssign::getMem ( unsigned  ValNo,
MVT  ValVT,
unsigned  Offset,
MVT  LocVT,
LocInfo  HTP 
)
inlinestatic

◆ getPending()

static CCValAssign llvm::CCValAssign::getPending ( unsigned  ValNo,
MVT  ValVT,
MVT  LocVT,
LocInfo  HTP,
unsigned  ExtraInfo = 0 
)
inlinestatic

◆ getReg()

static CCValAssign llvm::CCValAssign::getReg ( unsigned  ValNo,
MVT  ValVT,
unsigned  RegNo,
MVT  LocVT,
LocInfo  HTP 
)
inlinestatic

◆ getValNo()

unsigned llvm::CCValAssign::getValNo ( ) const
inline

◆ getValVT()

MVT llvm::CCValAssign::getValVT ( ) const
inline

◆ isExtInLoc()

bool llvm::CCValAssign::isExtInLoc ( ) const
inline

◆ isMemLoc()

bool llvm::CCValAssign::isMemLoc ( ) const
inline

◆ isRegLoc()

bool llvm::CCValAssign::isRegLoc ( ) const
inline

◆ isUpperBitsInLoc()

bool llvm::CCValAssign::isUpperBitsInLoc ( ) const
inline

Definition at line 160 of file CallingConvLower.h.

References AExtUpper, SExtUpper, and ZExtUpper.

◆ needsCustom()

bool llvm::CCValAssign::needsCustom ( ) const
inline

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