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

The location of a single variable, composed of an expression and 0 or more DbgValueLocEntries. More...

#include "CodeGen/AsmPrinter/DebugLocEntry.h"

Public Member Functions

 DbgValueLoc (const DIExpression *Expr, ArrayRef< DbgValueLocEntry > Locs)
 
 DbgValueLoc (const DIExpression *Expr, ArrayRef< DbgValueLocEntry > Locs, bool IsVariadic)
 
 DbgValueLoc (const DIExpression *Expr, DbgValueLocEntry Loc)
 
bool isFragment () const
 
bool isEntryVal () const
 
bool isVariadic () const
 
bool isEquivalent (const DbgValueLoc &Other) const
 
const DIExpressiongetExpression () const
 
ArrayRef< DbgValueLocEntrygetLocEntries () const
 
LLVM_DUMP_METHOD void dump () const
 

Friends

bool operator== (const DbgValueLoc &, const DbgValueLoc &)
 Compare two DbgValueLocs for equality.
 
bool operator< (const DbgValueLoc &, const DbgValueLoc &)
 Compare two fragments based on their offset.
 

Detailed Description

The location of a single variable, composed of an expression and 0 or more DbgValueLocEntries.

Definition at line 111 of file DebugLocEntry.h.

Constructor & Destructor Documentation

◆ DbgValueLoc() [1/3]

llvm::DbgValueLoc::DbgValueLoc ( const DIExpression Expr,
ArrayRef< DbgValueLocEntry Locs 
)
inline

Definition at line 120 of file DebugLocEntry.h.

◆ DbgValueLoc() [2/3]

llvm::DbgValueLoc::DbgValueLoc ( const DIExpression Expr,
ArrayRef< DbgValueLocEntry Locs,
bool  IsVariadic 
)
inline

◆ DbgValueLoc() [3/3]

llvm::DbgValueLoc::DbgValueLoc ( const DIExpression Expr,
DbgValueLocEntry  Loc 
)
inline

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void llvm::DbgValueLoc::dump ( ) const
inline

Definition at line 172 of file DebugLocEntry.h.

◆ getExpression()

const DIExpression * llvm::DbgValueLoc::getExpression ( ) const
inline

Definition at line 167 of file DebugLocEntry.h.

Referenced by isEntryVal(), and isFragment().

◆ getLocEntries()

ArrayRef< DbgValueLocEntry > llvm::DbgValueLoc::getLocEntries ( ) const
inline

Definition at line 168 of file DebugLocEntry.h.

◆ isEntryVal()

bool llvm::DbgValueLoc::isEntryVal ( ) const
inline

Definition at line 142 of file DebugLocEntry.h.

References getExpression(), and llvm::DIExpression::isEntryValue().

◆ isEquivalent()

bool llvm::DbgValueLoc::isEquivalent ( const DbgValueLoc Other) const
inline

◆ isFragment()

bool llvm::DbgValueLoc::isFragment ( ) const
inline

Definition at line 141 of file DebugLocEntry.h.

References getExpression(), and llvm::DIExpression::isFragment().

◆ isVariadic()

bool llvm::DbgValueLoc::isVariadic ( ) const
inline

Definition at line 143 of file DebugLocEntry.h.

Friends And Related Function Documentation

◆ operator<

bool operator< ( const DbgValueLoc A,
const DbgValueLoc B 
)
friend

Compare two fragments based on their offset.

Definition at line 280 of file DebugLocEntry.h.

◆ operator==

bool operator== ( const DbgValueLoc A,
const DbgValueLoc B 
)
friend

Compare two DbgValueLocs for equality.

Definition at line 274 of file DebugLocEntry.h.


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