LLVM  10.0.0svn
Public Member Functions | Friends | List of all members
llvm::DbgValueLoc Class Reference

A single location or constant. More...

#include "CodeGen/AsmPrinter/DebugLocEntry.h"

Collaboration diagram for llvm::DbgValueLoc:
Collaboration graph
[legend]

Public Member Functions

 DbgValueLoc (const DIExpression *Expr, int64_t i)
 
 DbgValueLoc (const DIExpression *Expr, const ConstantFP *CFP)
 
 DbgValueLoc (const DIExpression *Expr, const ConstantInt *CIP)
 
 DbgValueLoc (const DIExpression *Expr, MachineLocation Loc)
 
bool isLocation () const
 
bool isInt () const
 
bool isConstantFP () const
 
bool isConstantInt () const
 
int64_t getInt () const
 
const ConstantFPgetConstantFP () const
 
const ConstantIntgetConstantInt () const
 
MachineLocation getLoc () const
 
bool isFragment () const
 
bool isEntryVal () const
 
const DIExpressiongetExpression () 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

A single location or constant.

Definition at line 24 of file DebugLocEntry.h.

Constructor & Destructor Documentation

◆ DbgValueLoc() [1/4]

llvm::DbgValueLoc::DbgValueLoc ( const DIExpression Expr,
int64_t  i 
)
inline

Definition at line 43 of file DebugLocEntry.h.

◆ DbgValueLoc() [2/4]

llvm::DbgValueLoc::DbgValueLoc ( const DIExpression Expr,
const ConstantFP CFP 
)
inline

Definition at line 47 of file DebugLocEntry.h.

References CFP.

◆ DbgValueLoc() [3/4]

llvm::DbgValueLoc::DbgValueLoc ( const DIExpression Expr,
const ConstantInt CIP 
)
inline

Definition at line 51 of file DebugLocEntry.h.

References CIP.

◆ DbgValueLoc() [4/4]

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

Definition at line 55 of file DebugLocEntry.h.

References assert().

Member Function Documentation

◆ dump()

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

◆ getConstantFP()

const ConstantFP* llvm::DbgValueLoc::getConstantFP ( ) const
inline

Definition at line 65 of file DebugLocEntry.h.

Referenced by llvm::DwarfDebug::emitDebugLocValue().

◆ getConstantInt()

const ConstantInt* llvm::DbgValueLoc::getConstantInt ( ) const
inline

Definition at line 66 of file DebugLocEntry.h.

◆ getExpression()

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

◆ getInt()

int64_t llvm::DbgValueLoc::getInt ( ) const
inline

Definition at line 64 of file DebugLocEntry.h.

Referenced by llvm::DwarfDebug::emitDebugLocValue().

◆ getLoc()

MachineLocation llvm::DbgValueLoc::getLoc ( ) const
inline

Definition at line 67 of file DebugLocEntry.h.

Referenced by llvm::DwarfDebug::emitDebugLocValue().

◆ isConstantFP()

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

Definition at line 62 of file DebugLocEntry.h.

Referenced by dump(), and llvm::DwarfDebug::emitDebugLocValue().

◆ isConstantInt()

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

Definition at line 63 of file DebugLocEntry.h.

Referenced by dump().

◆ isEntryVal()

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

Definition at line 69 of file DebugLocEntry.h.

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

◆ isFragment()

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

Definition at line 68 of file DebugLocEntry.h.

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

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

◆ isInt()

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

Definition at line 61 of file DebugLocEntry.h.

Referenced by llvm::DwarfDebug::emitDebugLocValue().

◆ isLocation()

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

Definition at line 60 of file DebugLocEntry.h.

Referenced by dump(), and llvm::DwarfDebug::emitDebugLocValue().

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

Referenced by getExpression().

◆ operator==

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

Compare two DbgValueLocs for equality.

Definition at line 154 of file DebugLocEntry.h.

Referenced by getExpression().

Member Data Documentation

◆ CFP

const ConstantFP* llvm::DbgValueLoc::CFP

Definition at line 35 of file DebugLocEntry.h.

Referenced by DbgValueLoc(), and llvm::operator==().

◆ CIP

const ConstantInt* llvm::DbgValueLoc::CIP

Definition at line 36 of file DebugLocEntry.h.

Referenced by DbgValueLoc(), and llvm::operator==().

◆ Int

int64_t llvm::DbgValueLoc::Int

Definition at line 34 of file DebugLocEntry.h.

Referenced by llvm::operator==().


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