|
LLVM 22.0.0git
|
Alias summary information. More...
#include "llvm/IR/ModuleSummaryIndex.h"
Public Member Functions | |
| AliasSummary (GVFlags Flags) | |
| void | setAliasee (ValueInfo &AliaseeVI, GlobalValueSummary *Aliasee) |
| bool | hasAliasee () const |
| const GlobalValueSummary & | getAliasee () const |
| GlobalValueSummary & | getAliasee () |
| ValueInfo | getAliaseeVI () const |
| GlobalValue::GUID | getAliaseeGUID () const |
| Public Member Functions inherited from llvm::GlobalValueSummary | |
| virtual | ~GlobalValueSummary ()=default |
| GlobalValue::GUID | getOriginalName () const |
| Returns the hash of the original name, it is identical to the GUID for externally visible symbols, but not for local ones. | |
| void | setOriginalName (GlobalValue::GUID Name) |
| Initialize the original name hash in this summary. | |
| SummaryKind | getSummaryKind () const |
| Which kind of summary subclass this is. | |
| void | setModulePath (StringRef ModPath) |
| Set the path to the module containing this function, for use in the combined index. | |
| StringRef | modulePath () const |
| Get the path to the module containing this function. | |
| GVFlags | flags () const |
Get the flags for this GlobalValue (see struct GVFlags). | |
| GlobalValue::LinkageTypes | linkage () const |
| Return linkage type recorded for this global value. | |
| void | setLinkage (GlobalValue::LinkageTypes Linkage) |
| Sets the linkage to the value determined by global summary-based optimization. | |
| bool | notEligibleToImport () const |
| Return true if this global value can't be imported. | |
| bool | isLive () const |
| void | setLive (bool Live) |
| void | setDSOLocal (bool Local) |
| bool | isDSOLocal () const |
| void | setCanAutoHide (bool CanAutoHide) |
| bool | canAutoHide () const |
| bool | shouldImportAsDecl () const |
| void | setImportKind (ImportKind IK) |
| GlobalValueSummary::ImportKind | importType () const |
| GlobalValue::VisibilityTypes | getVisibility () const |
| void | setVisibility (GlobalValue::VisibilityTypes Vis) |
| void | setNotEligibleToImport () |
| Flag that this global value cannot be imported. | |
| ArrayRef< ValueInfo > | refs () const |
| Return the list of values referenced by this global value definition. | |
| GlobalValueSummary * | getBaseObject () |
| If this is an alias summary, returns the summary of the aliased object (a global variable or function), otherwise returns itself. | |
| const GlobalValueSummary * | getBaseObject () const |
Static Public Member Functions | |
| static bool | classof (const GlobalValueSummary *GVS) |
| Check if this is an alias summary. | |
Additional Inherited Members | |
| Public Types inherited from llvm::GlobalValueSummary | |
| enum | SummaryKind : unsigned { AliasKind , FunctionKind , GlobalVarKind } |
| Sububclass discriminator (for dyn_cast<> et al.) More... | |
| enum | ImportKind : unsigned { Definition = 0 , Declaration = 1 } |
| Protected Member Functions inherited from llvm::GlobalValueSummary | |
| GlobalValueSummary (SummaryKind K, GVFlags Flags, SmallVectorImpl< ValueInfo > &&Refs) | |
Alias summary information.
Definition at line 695 of file ModuleSummaryIndex.h.
|
inline |
Definition at line 705 of file ModuleSummaryIndex.h.
References llvm::GlobalValueSummary::AliasKind, and llvm::GlobalValueSummary::GlobalValueSummary().
Referenced by getAliasee().
|
inlinestatic |
Check if this is an alias summary.
Definition at line 709 of file ModuleSummaryIndex.h.
References llvm::GlobalValueSummary::AliasKind, llvm::GlobalValueSummary::getSummaryKind(), and llvm::GlobalValueSummary::GlobalValueSummary().
|
inline |
Definition at line 730 of file ModuleSummaryIndex.h.
References AliasSummary(), and llvm::GlobalValueSummary::GlobalValueSummary().
|
inline |
Definition at line 725 of file ModuleSummaryIndex.h.
References assert(), and llvm::GlobalValueSummary::GlobalValueSummary().
|
inline |
Definition at line 738 of file ModuleSummaryIndex.h.
References assert().
|
inline |
Definition at line 734 of file ModuleSummaryIndex.h.
References assert().
|
inline |
Definition at line 718 of file ModuleSummaryIndex.h.
References assert().
|
inline |
Definition at line 713 of file ModuleSummaryIndex.h.
References llvm::GlobalValueSummary::GlobalValueSummary().