LLVM  8.0.1
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 33 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 55 of file DebugLocEntry.h.

Constructor & Destructor Documentation

◆ Value() [1/4]

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

Definition at line 34 of file DebugLocEntry.h.

◆ Value() [2/4]

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

Definition at line 38 of file DebugLocEntry.h.

References CFP.

◆ Value() [3/4]

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

Definition at line 42 of file DebugLocEntry.h.

References CIP.

◆ Value() [4/4]

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

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

Referenced by emitDebugLocValue().

◆ getConstantInt()

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

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

Referenced by emitDebugLocValue().

◆ getLoc()

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

Definition at line 75 of file DebugLocEntry.h.

References Loc.

Referenced by emitDebugLocValue().

◆ isConstantFP()

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

Definition at line 70 of file DebugLocEntry.h.

References E_ConstantFP.

Referenced by dump(), and emitDebugLocValue().

◆ isConstantInt()

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

Definition at line 71 of file DebugLocEntry.h.

References E_ConstantInt.

Referenced by dump().

◆ isFragment()

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

Definition at line 76 of file DebugLocEntry.h.

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

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

◆ isInt()

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

Definition at line 69 of file DebugLocEntry.h.

References E_Integer.

Referenced by emitDebugLocValue().

◆ isLocation()

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

Definition at line 68 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 179 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 157 of file DebugLocEntry.h.

Referenced by getExpression().

Member Data Documentation

◆ CFP

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

Definition at line 61 of file DebugLocEntry.h.

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

◆ CIP

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

Definition at line 62 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 56 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 52 of file DebugLocEntry.h.

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

◆ Int

int64_t llvm::DebugLocEntry::Value::Int

Definition at line 60 of file DebugLocEntry.h.

Referenced by llvm::operator==().

◆ Loc

MachineLocation llvm::DebugLocEntry::Value::Loc

Definition at line 66 of file DebugLocEntry.h.

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


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