LLVM  8.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

Public Member Functions

 NameOrGV (bool HaveGVs)

Public Attributes

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

Detailed Description

Definition at line 107 of file ModuleSummaryIndex.h.

Constructor & Destructor Documentation

◆ NameOrGV()

llvm::GlobalValueSummaryInfo::NameOrGV::NameOrGV ( bool  HaveGVs)

Definition at line 108 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 and when the IR is available. E.g. when module analysis is being run, or when parsing both the IR and the summary from assembly.

Definition at line 119 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 126 of file ModuleSummaryIndex.h.

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