LLVM  4.0.0
Public Types | Public Member Functions | Public Attributes | Friends | List of all members
llvm::DebugLocEntry::Value Struct Reference

A single location or constant. More...

#include <DebugLocEntry.h>

Collaboration diagram for llvm::DebugLocEntry::Value:
[legend]

Public Types

enum  EntryType { E_Location, E_Integer, E_ConstantFP, E_ConstantInt }
 Type of entry that this represents. More...
 

Public Member Functions

 Value (const DIExpression *Expr, int64_t i)
 
 Value (const DIExpression *Expr, const ConstantFP *CFP)
 
 Value (const DIExpression *Expr, const ConstantInt *CIP)
 
 Value (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
 
const DIExpressiongetExpression () const
 
void dump () const
 

Public Attributes

const DIExpressionExpression
 Any complex address location expression for this Value. More...
 
enum EntryType EntryKind
 
union {
   int64_t   Int
 
   const ConstantFP *   CFP
 
   const ConstantInt *   CIP
 
Constant
 Either a constant,. More...
 
MachineLocation Loc
 

Friends

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

Detailed Description

A single location or constant.

Definition at line 32 of file DebugLocEntry.h.

Member Enumeration Documentation

Type of entry that this represents.

Enumerator
E_Location 
E_Integer 
E_ConstantFP 
E_ConstantInt 

Definition at line 54 of file DebugLocEntry.h.

Constructor & Destructor Documentation

llvm::DebugLocEntry::Value::Value ( const DIExpression Expr,
int64_t  i 
)
inline

Definition at line 33 of file DebugLocEntry.h.

References i.

llvm::DebugLocEntry::Value::Value ( const DIExpression Expr,
const ConstantFP CFP 
)
inline

Definition at line 37 of file DebugLocEntry.h.

References CFP.

llvm::DebugLocEntry::Value::Value ( const DIExpression Expr,
const ConstantInt CIP 
)
inline

Definition at line 41 of file DebugLocEntry.h.

References CIP.

llvm::DebugLocEntry::Value::Value ( const DIExpression Expr,
MachineLocation  Loc 
)
inline

Definition at line 45 of file DebugLocEntry.h.

References assert(), and isValid().

Member Function Documentation

void llvm::DebugLocEntry::Value::dump ( void  ) const
inline
const ConstantFP* llvm::DebugLocEntry::Value::getConstantFP ( ) const
inline

Definition at line 72 of file DebugLocEntry.h.

Referenced by emitDebugLocValue().

const ConstantInt* llvm::DebugLocEntry::Value::getConstantInt ( ) const
inline

Definition at line 73 of file DebugLocEntry.h.

const DIExpression* llvm::DebugLocEntry::Value::getExpression ( ) const
inline
int64_t llvm::DebugLocEntry::Value::getInt ( ) const
inline

Definition at line 71 of file DebugLocEntry.h.

Referenced by emitDebugLocValue().

MachineLocation llvm::DebugLocEntry::Value::getLoc ( ) const
inline

Definition at line 74 of file DebugLocEntry.h.

References Loc.

Referenced by emitDebugLocValue().

bool llvm::DebugLocEntry::Value::isConstantFP ( ) const
inline

Definition at line 69 of file DebugLocEntry.h.

References E_ConstantFP, and EntryKind.

Referenced by dump(), and emitDebugLocValue().

bool llvm::DebugLocEntry::Value::isConstantInt ( ) const
inline

Definition at line 70 of file DebugLocEntry.h.

References E_ConstantInt, and EntryKind.

Referenced by dump().

bool llvm::DebugLocEntry::Value::isFragment ( ) const
inline
bool llvm::DebugLocEntry::Value::isInt ( ) const
inline

Definition at line 68 of file DebugLocEntry.h.

References E_Integer, and EntryKind.

Referenced by emitDebugLocValue().

bool llvm::DebugLocEntry::Value::isLocation ( ) const
inline

Definition at line 67 of file DebugLocEntry.h.

References E_Location, and EntryKind.

Referenced by dump(), and emitDebugLocValue().

Friends And Related Function Documentation

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

Compare two fragments based on their offset.

Definition at line 176 of file DebugLocEntry.h.

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

Compare two Values for equality.

Definition at line 154 of file DebugLocEntry.h.

Member Data Documentation

const ConstantFP* llvm::DebugLocEntry::Value::CFP

Definition at line 60 of file DebugLocEntry.h.

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

const ConstantInt* llvm::DebugLocEntry::Value::CIP

Definition at line 61 of file DebugLocEntry.h.

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

union { ... } llvm::DebugLocEntry::Value::Constant

Either a constant,.

Referenced by llvm::operator==().

enum EntryType llvm::DebugLocEntry::Value::EntryKind

Definition at line 55 of file DebugLocEntry.h.

Referenced by isConstantFP(), isConstantInt(), isInt(), isLocation(), and llvm::operator==().

const DIExpression* llvm::DebugLocEntry::Value::Expression

Any complex address location expression for this Value.

Definition at line 51 of file DebugLocEntry.h.

Referenced by dump(), getExpression(), and llvm::operator==().

int64_t llvm::DebugLocEntry::Value::Int

Definition at line 59 of file DebugLocEntry.h.

Referenced by llvm::operator==().

MachineLocation llvm::DebugLocEntry::Value::Loc

Definition at line 65 of file DebugLocEntry.h.

Referenced by dump(), getLoc(), and llvm::operator==().


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