LLVM  8.0.1
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 HaveGVs)
 

Public Attributes

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

Detailed Description

Definition at line 124 of file ModuleSummaryIndex.h.

Constructor & Destructor Documentation

◆ NameOrGV()

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

Definition at line 125 of file ModuleSummaryIndex.h.

References Name.

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 136 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 143 of file ModuleSummaryIndex.h.


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