LLVM 20.0.0git
Public Member Functions | Static Public Member Functions | List of all members
llvm::StackOffset Class Reference

StackOffset holds a fixed and a scalable offset in bytes. More...

#include "llvm/Support/TypeSize.h"

Public Member Functions

 StackOffset ()=default
 
int64_t getFixed () const
 Returns the fixed component of the stack.
 
int64_t getScalable () const
 Returns the scalable component of the stack.
 
StackOffset operator+ (const StackOffset &RHS) const
 
StackOffset operator- (const StackOffset &RHS) const
 
StackOffsetoperator+= (const StackOffset &RHS)
 
StackOffsetoperator-= (const StackOffset &RHS)
 
StackOffset operator- () const
 
bool operator== (const StackOffset &RHS) const
 
bool operator!= (const StackOffset &RHS) const
 
 operator bool () const
 

Static Public Member Functions

static StackOffset getFixed (int64_t Fixed)
 
static StackOffset getScalable (int64_t Scalable)
 
static StackOffset get (int64_t Fixed, int64_t Scalable)
 

Detailed Description

StackOffset holds a fixed and a scalable offset in bytes.

Definition at line 33 of file TypeSize.h.

Constructor & Destructor Documentation

◆ StackOffset()

llvm::StackOffset::StackOffset ( )
default

Member Function Documentation

◆ get()

static StackOffset llvm::StackOffset::get ( int64_t  Fixed,
int64_t  Scalable 
)
inlinestatic

◆ getFixed() [1/2]

int64_t llvm::StackOffset::getFixed ( ) const
inline

Returns the fixed component of the stack.

Definition at line 49 of file TypeSize.h.

References llvm::Fixed.

Referenced by llvm::RISCVRegisterInfo::adjustReg(), llvm::RISCVFrameLowering::allocateStack(), convertCalleeSaveRestoreToSPPrePostIncDec(), llvm::AArch64FrameLowering::eliminateCallFramePseudoInstr(), llvm::RISCVFrameLowering::eliminateCallFramePseudoInstr(), llvm::AArch64RegisterInfo::eliminateFrameIndex(), llvm::LoongArchRegisterInfo::eliminateFrameIndex(), llvm::RISCVRegisterInfo::eliminateFrameIndex(), emitDebugValueComment(), llvm::AArch64FrameLowering::emitEpilogue(), llvm::RISCVFrameLowering::emitEpilogue(), llvm::emitFrameOffset(), emitFrameOffsetAdj(), llvm::AArch64FrameLowering::emitPrologue(), llvm::RISCVFrameLowering::emitPrologue(), getFPOffset(), llvm::TargetFrameLowering::getFrameIndexReference(), llvm::R600FrameLowering::getFrameIndexReference(), llvm::SIFrameLowering::getFrameIndexReference(), llvm::ARMFrameLowering::getFrameIndexReference(), llvm::CSKYFrameLowering::getFrameIndexReference(), llvm::HexagonFrameLowering::getFrameIndexReference(), llvm::LoongArchFrameLowering::getFrameIndexReference(), llvm::M68kFrameLowering::getFrameIndexReference(), llvm::MipsSEFrameLowering::getFrameIndexReference(), llvm::NVPTXFrameLowering::getFrameIndexReference(), llvm::RISCVFrameLowering::getFrameIndexReference(), llvm::SparcFrameLowering::getFrameIndexReference(), llvm::SystemZELFFrameLowering::getFrameIndexReference(), llvm::VEFrameLowering::getFrameIndexReference(), llvm::X86FrameLowering::getFrameIndexReference(), llvm::TargetFrameLowering::getFrameIndexReferenceFromSP(), llvm::AArch64FrameLowering::getFrameIndexReferenceFromSP(), llvm::AArch64FrameLowering::getFrameIndexReferencePreferSP(), llvm::X86FrameLowering::getFrameIndexReferenceSP(), llvm::AArch64FrameLowering::getNonLocalFrameIndexReference(), getStackOffset(), llvm::AArch64RegisterInfo::isFrameOffsetLegal(), llvm::AArch64InstrInfo::probedStackAlloc(), llvm::AArch64RegisterInfo::resolveFrameIndex(), llvm::AArch64FrameLowering::resolveFrameOffsetReference(), and llvm::rewriteAArch64FrameIndex().

◆ getFixed() [2/2]

static StackOffset llvm::StackOffset::getFixed ( int64_t  Fixed)
inlinestatic

◆ getScalable() [1/2]

int64_t llvm::StackOffset::getScalable ( ) const
inline

◆ getScalable() [2/2]

static StackOffset llvm::StackOffset::getScalable ( int64_t  Scalable)
inlinestatic

◆ operator bool()

llvm::StackOffset::operator bool ( ) const
inlineexplicit

Definition at line 82 of file TypeSize.h.

References llvm::Fixed.

◆ operator!=()

bool llvm::StackOffset::operator!= ( const StackOffset RHS) const
inline

Definition at line 77 of file TypeSize.h.

References llvm::Fixed, and RHS.

◆ operator+()

StackOffset llvm::StackOffset::operator+ ( const StackOffset RHS) const
inline

Definition at line 55 of file TypeSize.h.

References llvm::Fixed, and RHS.

◆ operator+=()

StackOffset & llvm::StackOffset::operator+= ( const StackOffset RHS)
inline

Definition at line 61 of file TypeSize.h.

References llvm::Fixed, and RHS.

◆ operator-() [1/2]

StackOffset llvm::StackOffset::operator- ( ) const
inline

Definition at line 71 of file TypeSize.h.

References llvm::Fixed.

◆ operator-() [2/2]

StackOffset llvm::StackOffset::operator- ( const StackOffset RHS) const
inline

Definition at line 58 of file TypeSize.h.

References llvm::Fixed, and RHS.

◆ operator-=()

StackOffset & llvm::StackOffset::operator-= ( const StackOffset RHS)
inline

Definition at line 66 of file TypeSize.h.

References llvm::Fixed, and RHS.

◆ operator==()

bool llvm::StackOffset::operator== ( const StackOffset RHS) const
inline

Definition at line 74 of file TypeSize.h.

References llvm::Fixed, and RHS.


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