LLVM 19.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::MachineFunction::VariableDbgInfo Class Reference

Description of the location of a variable whose Address is valid and unchanging during function execution. More...

#include "llvm/CodeGen/MachineFunction.h"

Public Member Functions

 VariableDbgInfo (const DILocalVariable *Var, const DIExpression *Expr, int Slot, const DILocation *Loc)
 
 VariableDbgInfo (const DILocalVariable *Var, const DIExpression *Expr, MCRegister EntryValReg, const DILocation *Loc)
 
bool inStackSlot () const
 Return true if this variable is in a stack slot.
 
bool inEntryValueRegister () const
 Return true if this variable is in the entry value of a register.
 
int getStackSlot () const
 Returns the stack slot of this variable, assuming inStackSlot() is true.
 
MCRegister getEntryValueRegister () const
 Returns the MCRegister of this variable, assuming inEntryValueRegister() is true.
 
void updateStackSlot (int NewSlot)
 Updates the stack slot of this variable, assuming inStackSlot() is true.
 

Public Attributes

const DILocalVariableVar
 
const DIExpressionExpr
 
const DILocationLoc
 

Detailed Description

Description of the location of a variable whose Address is valid and unchanging during function execution.

The Address may be:

Definition at line 414 of file MachineFunction.h.

Constructor & Destructor Documentation

◆ VariableDbgInfo() [1/2]

llvm::MachineFunction::VariableDbgInfo::VariableDbgInfo ( const DILocalVariable Var,
const DIExpression Expr,
int  Slot,
const DILocation Loc 
)
inline

Definition at line 422 of file MachineFunction.h.

◆ VariableDbgInfo() [2/2]

llvm::MachineFunction::VariableDbgInfo::VariableDbgInfo ( const DILocalVariable Var,
const DIExpression Expr,
MCRegister  EntryValReg,
const DILocation Loc 
)
inline

Definition at line 426 of file MachineFunction.h.

Member Function Documentation

◆ getEntryValueRegister()

MCRegister llvm::MachineFunction::VariableDbgInfo::getEntryValueRegister ( ) const
inline

Returns the MCRegister of this variable, assuming inEntryValueRegister() is true.

Definition at line 444 of file MachineFunction.h.

◆ getStackSlot()

int llvm::MachineFunction::VariableDbgInfo::getStackSlot ( ) const
inline

Returns the stack slot of this variable, assuming inStackSlot() is true.

Definition at line 440 of file MachineFunction.h.

◆ inEntryValueRegister()

bool llvm::MachineFunction::VariableDbgInfo::inEntryValueRegister ( ) const
inline

Return true if this variable is in the entry value of a register.

Definition at line 434 of file MachineFunction.h.

◆ inStackSlot()

bool llvm::MachineFunction::VariableDbgInfo::inStackSlot ( ) const
inline

Return true if this variable is in a stack slot.

Definition at line 431 of file MachineFunction.h.

◆ updateStackSlot()

void llvm::MachineFunction::VariableDbgInfo::updateStackSlot ( int  NewSlot)
inline

Updates the stack slot of this variable, assuming inStackSlot() is true.

Definition at line 450 of file MachineFunction.h.

References assert().

Member Data Documentation

◆ Expr

const DIExpression* llvm::MachineFunction::VariableDbgInfo::Expr

Definition at line 419 of file MachineFunction.h.

Referenced by printStackObjectDbgInfo().

◆ Loc

const DILocation* llvm::MachineFunction::VariableDbgInfo::Loc

Definition at line 420 of file MachineFunction.h.

Referenced by printStackObjectDbgInfo().

◆ Var

const DILocalVariable* llvm::MachineFunction::VariableDbgInfo::Var

Definition at line 418 of file MachineFunction.h.

Referenced by printStackObjectDbgInfo().


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