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

#include "llvm/IR/ModuleSummaryIndex.h"

Public Member Functions

 NameOrGV (bool HaveGVs)
 

Public Attributes

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

Detailed Description

Definition at line 139 of file ModuleSummaryIndex.h.

Constructor & Destructor Documentation

◆ NameOrGV()

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

Definition at line 140 of file ModuleSummaryIndex.h.

References GV, and 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 151 of file ModuleSummaryIndex.h.

Referenced by NameOrGV().

◆ 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 158 of file ModuleSummaryIndex.h.

Referenced by NameOrGV().


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