|
LLVM
10.0.0
|
Struct that holds a reference to a particular GUID in a global value summary. More...
#include "llvm/IR/ModuleSummaryIndex.h"
Public Types | |
| enum | Flags { HaveGV = 1, ReadOnly = 2, WriteOnly = 4 } |
Public Member Functions | |
| ValueInfo ()=default | |
| ValueInfo (bool HaveGVs, const GlobalValueSummaryMapTy::value_type *R) | |
| operator bool () const | |
| GlobalValue::GUID | getGUID () const |
| const GlobalValue * | getValue () const |
| ArrayRef< std::unique_ptr< GlobalValueSummary > > | getSummaryList () const |
| StringRef | name () const |
| bool | haveGVs () const |
| bool | isReadOnly () const |
| bool | isWriteOnly () const |
| unsigned | getAccessSpecifier () const |
| bool | isValidAccessSpecifier () const |
| void | setReadOnly () |
| void | setWriteOnly () |
| const GlobalValueSummaryMapTy::value_type * | getRef () const |
| bool | isDSOLocal () const |
| bool | canAutoHide () const |
| Checks if all copies are eligible for auto-hiding (have flag set). More... | |
Public Attributes | |
| PointerIntPair< const GlobalValueSummaryMapTy::value_type *, 3, int > | RefAndFlags |
Struct that holds a reference to a particular GUID in a global value summary.
Definition at line 165 of file ModuleSummaryIndex.h.
| Enumerator | |
|---|---|
| HaveGV | |
| ReadOnly | |
| WriteOnly | |
Definition at line 166 of file ModuleSummaryIndex.h.
|
default |
Definition at line 171 of file ModuleSummaryIndex.h.
| bool ValueInfo::canAutoHide | ( | ) | const |
Checks if all copies are eligible for auto-hiding (have flag set).
Definition at line 46 of file ModuleSummaryIndex.cpp.
References llvm::all_of(), and getSummaryList().
Referenced by thinLTOResolvePrevailingGUID().
|
inline |
Definition at line 202 of file ModuleSummaryIndex.h.
References assert().
|
inline |
Definition at line 178 of file ModuleSummaryIndex.h.
Referenced by llvm::ModuleSummaryIndex::addGlobalValueSummary(), llvm::computeDeadSymbols(), computeImportForFunction(), computeImportForReferencedGlobals(), llvm::lto::createWriteIndexesThinBackend(), llvm::AliasSummary::getAliaseeGUID(), getLinkageNameWithSpace(), getNodeVisualName(), llvm::operator<(), llvm::operator<<(), thinLTOInternalizeAndPromoteGUID(), thinLTOResolvePrevailingGUID(), updateValueInfoForIndirectCalls(), and writeTypeIdCompatibleVtableSummaryRecord().
|
inline |
Definition at line 221 of file ModuleSummaryIndex.h.
Referenced by llvm::ModuleSummaryIndex::addGlobalValueSummary(), llvm::DenseMapInfo< ValueInfo >::getHashValue(), llvm::DenseMapInfo< ValueInfo >::isEqual(), llvm::operator!=(), llvm::operator<(), llvm::operator==(), and resolveFwdRef().
|
inline |
Definition at line 184 of file ModuleSummaryIndex.h.
Referenced by AddCalls(), canAutoHide(), llvm::GraphTraits< ValueInfo >::child_begin(), llvm::GraphTraits< ValueInfo >::child_edge_begin(), llvm::GraphTraits< ValueInfo >::child_edge_end(), llvm::GraphTraits< ValueInfo >::child_end(), llvm::computeDeadSymbols(), computeImportForFunction(), computeImportForReferencedGlobals(), llvm::computeSyntheticCounts(), llvm::ModuleSummaryIndex::discoverNodes(), llvm::ModuleSummaryIndex::findSummaryInModule(), getLinkageNameWithSpace(), llvm::AliasSummary::hasAliasee(), isDSOLocal(), isGlobalVarSummary(), thinLTOInternalizeAndPromoteGUID(), thinLTOResolvePrevailingGUID(), updateValueInfoForIndirectCalls(), and writeTypeIdCompatibleVtableSummaryRecord().
|
inline |
Definition at line 179 of file ModuleSummaryIndex.h.
References assert().
|
inline |
Definition at line 193 of file ModuleSummaryIndex.h.
Referenced by llvm::DenseMapInfo< ValueInfo >::isEqual().
| bool ValueInfo::isDSOLocal | ( | ) | const |
Definition at line 37 of file ModuleSummaryIndex.cpp.
References llvm::all_of(), and getSummaryList().
|
inline |
Definition at line 194 of file ModuleSummaryIndex.h.
References assert().
Referenced by llvm::ModuleSummaryIndex::canImportGlobalVar(), and resolveFwdRef().
|
inline |
Definition at line 206 of file ModuleSummaryIndex.h.
|
inline |
Definition at line 198 of file ModuleSummaryIndex.h.
References assert().
Referenced by llvm::ModuleSummaryIndex::canImportGlobalVar(), and resolveFwdRef().
|
inline |
Definition at line 188 of file ModuleSummaryIndex.h.
Referenced by getLinkageNameWithSpace(), getNodeVisualName(), and llvm::operator<<().
|
inlineexplicit |
Definition at line 176 of file ModuleSummaryIndex.h.
|
inline |
Definition at line 210 of file ModuleSummaryIndex.h.
References assert().
Referenced by resolveFwdRef().
|
inline |
Definition at line 216 of file ModuleSummaryIndex.h.
References assert().
Referenced by resolveFwdRef().
| PointerIntPair<const GlobalValueSummaryMapTy::value_type *, 3, int> llvm::ValueInfo::RefAndFlags |
Definition at line 168 of file ModuleSummaryIndex.h.
1.8.13