LLVM 22.0.0git
llvm::StackMapParser< Endianness >::LocationAccessor Class Reference

Accessor for location records. More...

#include "llvm/Object/StackMapParser.h"

Public Member Functions

LocationKind getKind () const
 Get the Kind for this location.
unsigned getSizeInBytes () const
 Get the Size for this location.
uint16_t getDwarfRegNum () const
 Get the Dwarf register number for this location.
uint32_t getSmallConstant () const
 Get the small-constant for this location. (Kind must be Constant).
uint32_t getConstantIndex () const
 Get the constant-index for this location. (Kind must be ConstantIndex).
int32_t getOffset () const
 Get the offset for this location. (Kind must be Direct or Indirect).

Friends

class StackMapParser
class RecordAccessor

Detailed Description

template<llvm::endianness Endianness>
class llvm::StackMapParser< Endianness >::LocationAccessor

Accessor for location records.

Definition at line 110 of file StackMapParser.h.

Member Function Documentation

◆ getConstantIndex()

template<llvm::endianness Endianness>
uint32_t llvm::StackMapParser< Endianness >::LocationAccessor::getConstantIndex ( ) const
inline

Get the constant-index for this location. (Kind must be ConstantIndex).

Definition at line 138 of file StackMapParser.h.

References assert(), llvm::StackMapParser< Endianness >::ConstantIndex, and getKind().

◆ getDwarfRegNum()

template<llvm::endianness Endianness>
uint16_t llvm::StackMapParser< Endianness >::LocationAccessor::getDwarfRegNum ( ) const
inline

Get the Dwarf register number for this location.

Definition at line 127 of file StackMapParser.h.

◆ getKind()

template<llvm::endianness Endianness>
LocationKind llvm::StackMapParser< Endianness >::LocationAccessor::getKind ( ) const
inline

Get the Kind for this location.

Definition at line 116 of file StackMapParser.h.

Referenced by getConstantIndex(), getOffset(), and getSmallConstant().

◆ getOffset()

template<llvm::endianness Endianness>
int32_t llvm::StackMapParser< Endianness >::LocationAccessor::getOffset ( ) const
inline

Get the offset for this location. (Kind must be Direct or Indirect).

Definition at line 145 of file StackMapParser.h.

References assert(), llvm::StackMapParser< Endianness >::Direct, getKind(), and llvm::StackMapParser< Endianness >::Indirect.

◆ getSizeInBytes()

template<llvm::endianness Endianness>
unsigned llvm::StackMapParser< Endianness >::LocationAccessor::getSizeInBytes ( ) const
inline

Get the Size for this location.

Definition at line 121 of file StackMapParser.h.

◆ getSmallConstant()

template<llvm::endianness Endianness>
uint32_t llvm::StackMapParser< Endianness >::LocationAccessor::getSmallConstant ( ) const
inline

Get the small-constant for this location. (Kind must be Constant).

Definition at line 132 of file StackMapParser.h.

References assert(), llvm::StackMapParser< Endianness >::Constant, and getKind().

◆ RecordAccessor

template<llvm::endianness Endianness>
friend class RecordAccessor
friend

Definition at line 112 of file StackMapParser.h.

References RecordAccessor.

Referenced by RecordAccessor.

◆ StackMapParser

template<llvm::endianness Endianness>
friend class StackMapParser
friend

Definition at line 111 of file StackMapParser.h.

References StackMapParser.

Referenced by StackMapParser.


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