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

The CalleeSavedInfo class tracks the information need to locate where a callee saved register is in the current frame. More...

#include "llvm/CodeGen/MachineFrameInfo.h"

Public Member Functions

 CalleeSavedInfo (unsigned R, int FI=0)
 
Register getReg () const
 
int getFrameIdx () const
 
unsigned getDstReg () const
 
void setFrameIdx (int FI)
 
void setDstReg (Register SpillReg)
 
bool isRestored () const
 
void setRestored (bool R)
 
bool isSpilledToReg () const
 

Detailed Description

The CalleeSavedInfo class tracks the information need to locate where a callee saved register is in the current frame.

Callee saved reg can also be saved to a different register rather than on the stack by setting DstReg instead of FrameIdx.

Definition at line 34 of file MachineFrameInfo.h.

Constructor & Destructor Documentation

◆ CalleeSavedInfo()

llvm::CalleeSavedInfo::CalleeSavedInfo ( unsigned  R,
int  FI = 0 
)
inlineexplicit

Definition at line 58 of file MachineFrameInfo.h.

Member Function Documentation

◆ getDstReg()

unsigned llvm::CalleeSavedInfo::getDstReg ( ) const
inline

Definition at line 63 of file MachineFrameInfo.h.

References DstReg.

◆ getFrameIdx()

int llvm::CalleeSavedInfo::getFrameIdx ( ) const
inline

Definition at line 62 of file MachineFrameInfo.h.

References FrameIdx.

Referenced by llvm::XCoreFrameLowering::emitPrologue().

◆ getReg()

Register llvm::CalleeSavedInfo::getReg ( ) const
inline

◆ isRestored()

bool llvm::CalleeSavedInfo::isRestored ( ) const
inline

Definition at line 72 of file MachineFrameInfo.h.

◆ isSpilledToReg()

bool llvm::CalleeSavedInfo::isSpilledToReg ( ) const
inline

Definition at line 74 of file MachineFrameInfo.h.

◆ setDstReg()

void llvm::CalleeSavedInfo::setDstReg ( Register  SpillReg)
inline

Definition at line 68 of file MachineFrameInfo.h.

References DstReg.

◆ setFrameIdx()

void llvm::CalleeSavedInfo::setFrameIdx ( int  FI)
inline

Definition at line 64 of file MachineFrameInfo.h.

References FrameIdx.

◆ setRestored()

void llvm::CalleeSavedInfo::setRestored ( bool  R)
inline

Definition at line 73 of file MachineFrameInfo.h.

Referenced by llvm::MIRParserImpl::parseCalleeSavedRegister().

Member Data Documentation

◆ DstReg

unsigned llvm::CalleeSavedInfo::DstReg

Definition at line 38 of file MachineFrameInfo.h.

Referenced by getDstReg(), and setDstReg().

◆ FrameIdx

int llvm::CalleeSavedInfo::FrameIdx

Definition at line 37 of file MachineFrameInfo.h.

Referenced by getFrameIdx(), and setFrameIdx().


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