LLVM  8.0.1
Public Member Functions | Public Attributes | List of all members
llvm::ValueInfo Struct Reference

Struct that holds a reference to a particular GUID in a global value summary. More...

#include "llvm/IR/ModuleSummaryIndex.h"

Collaboration diagram for llvm::ValueInfo:
Collaboration graph
[legend]

Public Member Functions

 ValueInfo ()=default
 
 ValueInfo (bool HaveGVs, const GlobalValueSummaryMapTy::value_type *R)
 
 operator bool () const
 
GlobalValue::GUID getGUID () const
 
const GlobalValuegetValue () const
 
ArrayRef< std::unique_ptr< GlobalValueSummary > > getSummaryList () const
 
StringRef name () const
 
bool haveGVs () const
 
bool isReadOnly () const
 
void setReadOnly ()
 
const GlobalValueSummaryMapTy::value_type * getRef () const
 
bool isDSOLocal () const
 

Public Attributes

PointerIntPair< const GlobalValueSummaryMapTy::value_type *, 2, int > RefAndFlags
 

Detailed Description

Struct that holds a reference to a particular GUID in a global value summary.

Definition at line 165 of file ModuleSummaryIndex.h.

Constructor & Destructor Documentation

◆ ValueInfo() [1/2]

llvm::ValueInfo::ValueInfo ( )
default

◆ ValueInfo() [2/2]

llvm::ValueInfo::ValueInfo ( bool  HaveGVs,
const GlobalValueSummaryMapTy::value_type *  R 
)
inline

Definition at line 170 of file ModuleSummaryIndex.h.

Member Function Documentation

◆ getGUID()

GlobalValue::GUID llvm::ValueInfo::getGUID ( ) const
inline

◆ getRef()

const GlobalValueSummaryMapTy::value_type* llvm::ValueInfo::getRef ( ) const
inline

◆ getSummaryList()

ArrayRef<std::unique_ptr<GlobalValueSummary> > llvm::ValueInfo::getSummaryList ( ) const
inline

◆ getValue()

const GlobalValue* llvm::ValueInfo::getValue ( ) const
inline

Definition at line 178 of file ModuleSummaryIndex.h.

References assert().

◆ haveGVs()

bool llvm::ValueInfo::haveGVs ( ) const
inline

Definition at line 192 of file ModuleSummaryIndex.h.

Referenced by llvm::DenseMapInfo< ValueInfo >::isEqual().

◆ isDSOLocal()

bool ValueInfo::isDSOLocal ( ) const

◆ isReadOnly()

bool llvm::ValueInfo::isReadOnly ( ) const
inline

Definition at line 193 of file ModuleSummaryIndex.h.

Referenced by resolveFwdRef().

◆ name()

StringRef llvm::ValueInfo::name ( ) const
inline

◆ operator bool()

llvm::ValueInfo::operator bool ( ) const
inline

Definition at line 175 of file ModuleSummaryIndex.h.

◆ setReadOnly()

void llvm::ValueInfo::setReadOnly ( )
inline

Definition at line 194 of file ModuleSummaryIndex.h.

Referenced by resolveFwdRef().

Member Data Documentation

◆ RefAndFlags

PointerIntPair<const GlobalValueSummaryMapTy::value_type *, 2, int> llvm::ValueInfo::RefAndFlags

Definition at line 167 of file ModuleSummaryIndex.h.


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