LLVM  14.0.0git
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
llvm::ISD::InputArg Struct Reference

InputArg - This struct carries flags and type information about a single incoming (formal) argument or incoming (from the perspective of the caller) return value virtual register. More...

#include "llvm/CodeGen/TargetCallingConv.h"

Collaboration diagram for llvm::ISD::InputArg:
Collaboration graph
[legend]

Public Member Functions

 InputArg ()=default
 
 InputArg (ArgFlagsTy flags, EVT vt, EVT argvt, bool used, unsigned origIdx, unsigned partOffs)
 
bool isOrigArg () const
 
unsigned getOrigArgIndex () const
 

Public Attributes

ArgFlagsTy Flags
 
MVT VT = MVT::Other
 
EVT ArgVT
 
bool Used = false
 
unsigned OrigArgIndex
 Index original Function's argument. More...
 
unsigned PartOffset
 Offset in bytes of current input value relative to the beginning of original argument. More...
 

Static Public Attributes

static const unsigned NoArgIndex = UINT_MAX
 Sentinel value for implicit machine-level input arguments. More...
 

Detailed Description

InputArg - This struct carries flags and type information about a single incoming (formal) argument or incoming (from the perspective of the caller) return value virtual register.

Definition at line 195 of file TargetCallingConv.h.

Constructor & Destructor Documentation

◆ InputArg() [1/2]

llvm::ISD::InputArg::InputArg ( )
default

◆ InputArg() [2/2]

llvm::ISD::InputArg::InputArg ( ArgFlagsTy  flags,
EVT  vt,
EVT  argvt,
bool  used,
unsigned  origIdx,
unsigned  partOffs 
)
inline

Definition at line 212 of file TargetCallingConv.h.

References ArgVT, llvm::EVT::getSimpleVT(), and VT.

Member Function Documentation

◆ getOrigArgIndex()

unsigned llvm::ISD::InputArg::getOrigArgIndex ( ) const
inline

Definition at line 223 of file TargetCallingConv.h.

References assert(), NoArgIndex, and OrigArgIndex.

◆ isOrigArg()

bool llvm::ISD::InputArg::isOrigArg ( ) const
inline

Definition at line 219 of file TargetCallingConv.h.

References NoArgIndex, and OrigArgIndex.

Member Data Documentation

◆ ArgVT

EVT llvm::ISD::InputArg::ArgVT

Definition at line 198 of file TargetCallingConv.h.

Referenced by InputArg(), and llvm::FastISel::lowerCallTo().

◆ Flags

ArgFlagsTy llvm::ISD::InputArg::Flags

Definition at line 196 of file TargetCallingConv.h.

Referenced by llvm::FastISel::lowerCallTo().

◆ NoArgIndex

const unsigned llvm::ISD::InputArg::NoArgIndex = UINT_MAX
static

Sentinel value for implicit machine-level input arguments.

Definition at line 204 of file TargetCallingConv.h.

Referenced by getOrigArgIndex(), and isOrigArg().

◆ OrigArgIndex

unsigned llvm::ISD::InputArg::OrigArgIndex

Index original Function's argument.

Definition at line 202 of file TargetCallingConv.h.

Referenced by getOrigArgIndex(), and isOrigArg().

◆ PartOffset

unsigned llvm::ISD::InputArg::PartOffset

Offset in bytes of current input value relative to the beginning of original argument.

E.g. if argument was splitted into four 32 bit registers, we got 4 InputArgs with PartOffsets 0, 4, 8 and 12.

Definition at line 209 of file TargetCallingConv.h.

◆ Used

bool llvm::ISD::InputArg::Used = false

Definition at line 199 of file TargetCallingConv.h.

Referenced by llvm::FastISel::lowerCallTo().

◆ VT

MVT llvm::ISD::InputArg::VT = MVT::Other

Definition at line 197 of file TargetCallingConv.h.

Referenced by InputArg(), and llvm::FastISel::lowerCallTo().


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