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

A single location or constant. More...

#include "CodeGen/AsmPrinter/DebugLocEntry.h"

Collaboration diagram for llvm::DebugLocEntry::Value:
Collaboration graph
[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
 
LLVM_DUMP_METHOD 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

◆ EntryType

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

◆ Value() [1/4]

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

Definition at line 33 of file DebugLocEntry.h.

◆ Value() [2/4]

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

Definition at line 37 of file DebugLocEntry.h.

References CFP.

◆ Value() [3/4]

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

Definition at line 41 of file DebugLocEntry.h.

References CIP.

◆ Value() [4/4]

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

Definition at line 45 of file DebugLocEntry.h.

References assert().

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void llvm::DebugLocEntry::Value::dump ( ) const
inline

◆ getConstantFP()

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

Definition at line 72 of file DebugLocEntry.h.

Referenced by emitDebugLocValue().

◆ getConstantInt()

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

Definition at line 73 of file DebugLocEntry.h.

◆ getExpression()

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

◆ getInt()

int64_t llvm::DebugLocEntry::Value::getInt ( ) const
inline

Definition at line 71 of file DebugLocEntry.h.

Referenced by emitDebugLocValue().

◆ getLoc()

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

Definition at line 74 of file DebugLocEntry.h.

References Loc.

Referenced by emitDebugLocValue().

◆ isConstantFP()

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

Definition at line 69 of file DebugLocEntry.h.

References E_ConstantFP.

Referenced by dump(), and emitDebugLocValue().

◆ isConstantInt()

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

Definition at line 70 of file DebugLocEntry.h.

References E_ConstantInt.

Referenced by dump().

◆ isFragment()

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

◆ isInt()

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

Definition at line 68 of file DebugLocEntry.h.

References E_Integer.

Referenced by emitDebugLocValue().

◆ isLocation()

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

Definition at line 67 of file DebugLocEntry.h.

References E_Location.

Referenced by dump(), and emitDebugLocValue().

Friends And Related Function Documentation

◆ operator<

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

Compare two fragments based on their offset.

Definition at line 178 of file DebugLocEntry.h.

Referenced by getExpression().

◆ operator==

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

Compare two Values for equality.

Definition at line 156 of file DebugLocEntry.h.

Referenced by getExpression().

Member Data Documentation

◆ CFP

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

Definition at line 60 of file DebugLocEntry.h.

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

◆ CIP

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

Definition at line 61 of file DebugLocEntry.h.

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

◆ Constant

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

Either a constant,.

Referenced by llvm::operator==().

◆ EntryKind

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

Definition at line 55 of file DebugLocEntry.h.

Referenced by llvm::operator==().

◆ Expression

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

Any complex address location expression for this Value.

Definition at line 51 of file DebugLocEntry.h.

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

◆ Int

int64_t llvm::DebugLocEntry::Value::Int

Definition at line 59 of file DebugLocEntry.h.

Referenced by llvm::operator==().

◆ Loc

MachineLocation llvm::DebugLocEntry::Value::Loc

Definition at line 65 of file DebugLocEntry.h.

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


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