LLVM  7.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::GlobalValueSummaryInfo::NameOrGV Union Reference

#include "llvm/IR/ModuleSummaryIndex.h"

Collaboration diagram for llvm::GlobalValueSummaryInfo::NameOrGV:
Collaboration graph
[legend]

Public Member Functions

 NameOrGV (bool IsAnalysis)
 

Public Attributes

const GlobalValueGV
 The GlobalValue corresponding to this summary. More...
 
StringRef Name
 Summary string representation. More...
 

Detailed Description

Definition at line 105 of file ModuleSummaryIndex.h.

Constructor & Destructor Documentation

◆ NameOrGV()

llvm::GlobalValueSummaryInfo::NameOrGV::NameOrGV ( bool  IsAnalysis)
inline

Definition at line 106 of file ModuleSummaryIndex.h.

Member Data Documentation

◆ GV

const GlobalValue* llvm::GlobalValueSummaryInfo::NameOrGV::GV

The GlobalValue corresponding to this summary.

This is only used in per-module summaries, when module analysis is being run.

Definition at line 115 of file ModuleSummaryIndex.h.

◆ Name

StringRef llvm::GlobalValueSummaryInfo::NameOrGV::Name

Summary string representation.

This StringRef points to BC module string table and is valid until module data is stored in memory. This is guaranteed to happen until runThinLTOBackend function is called, so it is safe to use this field during thin link. This field is only valid if summary index was loaded from BC file.

Definition at line 122 of file ModuleSummaryIndex.h.


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