LLVM  3.7.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 isBitPiece () const
 
const DIExpressiongetExpression () 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 pieces based on their offset. More...
 

Detailed Description

A single location or constant.

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

Constructor & Destructor Documentation

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

Definition at line 32 of file DebugLocEntry.h.

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

Definition at line 36 of file DebugLocEntry.h.

References CFP.

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

Definition at line 40 of file DebugLocEntry.h.

References CIP.

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

Definition at line 44 of file DebugLocEntry.h.

Member Function Documentation

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

Definition at line 71 of file DebugLocEntry.h.

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

Definition at line 72 of file DebugLocEntry.h.

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

Definition at line 70 of file DebugLocEntry.h.

Referenced by emitDebugLocValue().

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

Definition at line 73 of file DebugLocEntry.h.

References Loc.

Referenced by emitDebugLocValue().

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

Definition at line 74 of file DebugLocEntry.h.

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

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

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

Definition at line 68 of file DebugLocEntry.h.

References E_ConstantFP, and EntryKind.

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

Definition at line 69 of file DebugLocEntry.h.

References E_ConstantInt, and EntryKind.

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

Definition at line 67 of file DebugLocEntry.h.

References E_Integer, and EntryKind.

Referenced by emitDebugLocValue().

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

Definition at line 66 of file DebugLocEntry.h.

References E_Location, and EntryKind.

Referenced by emitDebugLocValue().

Friends And Related Function Documentation

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

Compare two pieces based on their offset.

Definition at line 172 of file DebugLocEntry.h.

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

Compare two Values for equality.

Definition at line 150 of file DebugLocEntry.h.

Member Data Documentation

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

Definition at line 59 of file DebugLocEntry.h.

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

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

Definition at line 60 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 54 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 50 of file DebugLocEntry.h.

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

int64_t llvm::DebugLocEntry::Value::Int

Definition at line 58 of file DebugLocEntry.h.

Referenced by llvm::operator==().

MachineLocation llvm::DebugLocEntry::Value::Loc

Definition at line 64 of file DebugLocEntry.h.

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


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