LLVM  4.0.0
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
llvm::ValueInfo Struct Reference

Struct to hold value either by GUID or GlobalValue*. More...

#include <ModuleSummaryIndex.h>

Collaboration diagram for llvm::ValueInfo:
[legend]

Classes

union  ValueUnion
 Union of the two possible value types. More...
 

Public Types

enum  ValueInfoKind { VI_GUID, VI_Value }
 The value representation used in this instance. More...
 

Public Member Functions

 ValueInfo (GlobalValue::GUID Id=0)
 Constructor for a GUID value. More...
 
 ValueInfo (const GlobalValue *V)
 Constructor for a GlobalValue* value. More...
 
GlobalValue::GUID getGUID () const
 Accessor for GUID value. More...
 
const GlobalValuegetValue () const
 Accessor for GlobalValue* value. More...
 
bool isGUID () const
 

Public Attributes

ValueUnion TheValue
 The value being represented. More...
 
ValueInfoKind Kind
 The value representation. More...
 

Detailed Description

Struct to hold value either by GUID or GlobalValue*.

Values in combined indexes as well as indirect calls are GUIDs, all others are GlobalValues.

Definition at line 50 of file ModuleSummaryIndex.h.

Member Enumeration Documentation

The value representation used in this instance.

Enumerator
VI_GUID 
VI_Value 

Definition at line 52 of file ModuleSummaryIndex.h.

Constructor & Destructor Documentation

llvm::ValueInfo::ValueInfo ( GlobalValue::GUID  Id = 0)
inline

Constructor for a GUID value.

Definition at line 70 of file ModuleSummaryIndex.h.

llvm::ValueInfo::ValueInfo ( const GlobalValue V)
inline

Constructor for a GlobalValue* value.

Definition at line 72 of file ModuleSummaryIndex.h.

Member Function Documentation

GlobalValue::GUID llvm::ValueInfo::getGUID ( ) const
inline
const GlobalValue* llvm::ValueInfo::getValue ( ) const
inline
bool llvm::ValueInfo::isGUID ( ) const
inline

Member Data Documentation

ValueInfoKind llvm::ValueInfo::Kind

The value representation.

Definition at line 68 of file ModuleSummaryIndex.h.

Referenced by getGUID(), getValue(), and isGUID().

ValueUnion llvm::ValueInfo::TheValue

The value being represented.

Definition at line 66 of file ModuleSummaryIndex.h.

Referenced by getGUID(), and getValue().


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