LLVM  14.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
 
const DIExpressiongetExpression () const
 
const ArrayRef< DbgValueLocEntrygetLocEntries () const
 
LLVM_DUMP_METHOD void dump () const
 

Friends

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

Detailed Description

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

Definition at line 108 of file DebugLocEntry.h.

Constructor & Destructor Documentation

◆ DbgValueLoc() [1/3]

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

Definition at line 117 of file DebugLocEntry.h.

References assert(), llvm::is_contained(), and llvm::DIExpression::isValid().

◆ 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 160 of file DebugLocEntry.h.

◆ getExpression()

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

Definition at line 153 of file DebugLocEntry.h.

Referenced by isEntryVal(), and isFragment().

◆ getLocEntries()

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

Definition at line 154 of file DebugLocEntry.h.

◆ isEntryVal()

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

Definition at line 151 of file DebugLocEntry.h.

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

◆ isFragment()

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

Definition at line 150 of file DebugLocEntry.h.

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

Referenced by llvm::DebugLocEntry::addValues().

◆ isVariadic()

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

Definition at line 152 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 259 of file DebugLocEntry.h.

◆ operator==

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

Compare two DbgValueLocs for equality.

Definition at line 253 of file DebugLocEntry.h.


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