class GlobalValueSummary
Declaration
class GlobalValueSummary { /* full declaration omitted */ };
Description
Function and variable summary information to aid decisions and implementation of importing.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:280
Method Overview
- protected GlobalValueSummary(llvm::GlobalValueSummary::SummaryKind K, llvm::GlobalValueSummary::GVFlags Flags, std::vector<ValueInfo> Refs)
- public bool canAutoHide() const
- public llvm::GlobalValueSummary::GVFlags flags() const
- public const llvm::GlobalValueSummary * getBaseObject() const
- public llvm::GlobalValueSummary * getBaseObject()
- public GlobalValue::GUID getOriginalName() const
- public llvm::GlobalValueSummary::SummaryKind getSummaryKind() const
- public bool isDSOLocal() const
- public bool isLive() const
- public GlobalValue::LinkageTypes linkage() const
- public llvm::StringRef modulePath() const
- public bool notEligibleToImport() const
- public ArrayRef<llvm::ValueInfo> refs() const
- public void setCanAutoHide(bool CanAutoHide)
- public void setDSOLocal(bool Local)
- public void setLinkage(GlobalValue::LinkageTypes Linkage)
- public void setLive(bool Live)
- public void setModulePath(llvm::StringRef ModPath)
- public void setNotEligibleToImport()
- public void setOriginalName(GlobalValue::GUID Name)
- public virtual ~GlobalValueSummary()
Methods
¶GlobalValueSummary(
llvm::GlobalValueSummary::SummaryKind K,
llvm::GlobalValueSummary::GVFlags Flags,
std::vector<ValueInfo> Refs)
GlobalValueSummary(
llvm::GlobalValueSummary::SummaryKind K,
llvm::GlobalValueSummary::GVFlags Flags,
std::vector<ValueInfo> Refs)
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:357
Parameters
- llvm::GlobalValueSummary::SummaryKind K
- llvm::GlobalValueSummary::GVFlags Flags
- std::vector<ValueInfo> Refs
¶bool canAutoHide() const
bool canAutoHide() const
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:410
¶llvm::GlobalValueSummary::GVFlags flags() const
llvm::GlobalValueSummary::GVFlags flags() const
Description
Get the flags for this GlobalValue (see \p struct GVFlags).
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:384
¶const llvm::GlobalValueSummary* getBaseObject()
const
const llvm::GlobalValueSummary* getBaseObject()
const
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:421
¶llvm::GlobalValueSummary* getBaseObject()
llvm::GlobalValueSummary* getBaseObject()
Description
If this is an alias summary, returns the summary of the aliased object (a global variable or function), otherwise returns itself.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:420
¶GlobalValue::GUID getOriginalName() const
GlobalValue::GUID getOriginalName() const
Description
Returns the hash of the original name, it is identical to the GUID for externally visible symbols, but not for local ones.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:368
¶llvm::GlobalValueSummary::SummaryKind
getSummaryKind() const
llvm::GlobalValueSummary::SummaryKind
getSummaryKind() const
Description
Which kind of summary subclass this is.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:374
¶bool isDSOLocal() const
bool isDSOLocal() const
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:406
¶bool isLive() const
bool isLive() const
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:400
¶GlobalValue::LinkageTypes linkage() const
GlobalValue::LinkageTypes linkage() const
Description
Return linkage type recorded for this global value.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:387
¶llvm::StringRef modulePath() const
llvm::StringRef modulePath() const
Description
Get the path to the module containing this function.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:381
¶bool notEligibleToImport() const
bool notEligibleToImport() const
Description
Return true if this global value can't be imported.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:398
¶ArrayRef<llvm::ValueInfo> refs() const
ArrayRef<llvm::ValueInfo> refs() const
Description
Return the list of values referenced by this global value definition.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:416
¶void setCanAutoHide(bool CanAutoHide)
void setCanAutoHide(bool CanAutoHide)
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:408
Parameters
- bool CanAutoHide
¶void setDSOLocal(bool Local)
void setDSOLocal(bool Local)
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:404
Parameters
- bool Local
¶void setLinkage(GlobalValue::LinkageTypes Linkage)
void setLinkage(GlobalValue::LinkageTypes Linkage)
Description
Sets the linkage to the value determined by global summary-based optimization. Will be applied in the ThinLTO backends.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:393
Parameters
- GlobalValue::LinkageTypes Linkage
¶void setLive(bool Live)
void setLive(bool Live)
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:402
Parameters
- bool Live
¶void setModulePath(llvm::StringRef ModPath)
void setModulePath(llvm::StringRef ModPath)
Description
Set the path to the module containing this function, for use in the combined index.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:378
Parameters
- llvm::StringRef ModPath
¶void setNotEligibleToImport()
void setNotEligibleToImport()
Description
Flag that this global value cannot be imported.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:413
¶void setOriginalName(GlobalValue::GUID Name)
void setOriginalName(GlobalValue::GUID Name)
Description
Initialize the original name hash in this summary.
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:371
Parameters
- GlobalValue::GUID Name
¶virtual ~GlobalValueSummary()
virtual ~GlobalValueSummary()
Declared at: llvm/include/llvm/IR/ModuleSummaryIndex.h:364