|
LLVM
4.0.0
|
Function summary information to aid decisions and implementation of importing. More...
#include <ModuleSummaryIndex.h>
Public Types | |
| typedef std::pair< ValueInfo, CalleeInfo > | EdgeTy |
| <CalleeValueInfo, CalleeInfo> call edge pair. More... | |
Public Types inherited from llvm::GlobalValueSummary | |
| enum | SummaryKind : unsigned { AliasKind, FunctionKind, GlobalVarKind } |
| Sububclass discriminator (for dyn_cast<> et al.) More... | |
Public Member Functions | |
| FunctionSummary (GVFlags Flags, unsigned NumInsts, std::vector< ValueInfo > Refs, std::vector< EdgeTy > CGEdges, std::vector< GlobalValue::GUID > TypeIds) | |
| Summary constructors. More... | |
| unsigned | instCount () const |
| Get the instruction count recorded for this function. More... | |
| ArrayRef< EdgeTy > | calls () const |
| Return the list of <CalleeValueInfo, CalleeInfo> pairs. More... | |
| ArrayRef< GlobalValue::GUID > | type_tests () const |
| Returns the list of type identifiers used by this function. More... | |
Public Member Functions inherited from llvm::GlobalValueSummary | |
| virtual | ~GlobalValueSummary ()=default |
| GlobalValue::GUID | getOriginalName () |
| Returns the hash of the original name, it is identical to the GUID for externally visible symbols, but not for local ones. More... | |
| void | setOriginalName (GlobalValue::GUID Name) |
| Initialize the original name hash in this summary. More... | |
| SummaryKind | getSummaryKind () const |
| Which kind of summary subclass this is. More... | |
| void | setModulePath (StringRef ModPath) |
| Set the path to the module containing this function, for use in the combined index. More... | |
| StringRef | modulePath () const |
| Get the path to the module containing this function. More... | |
| GVFlags | flags () |
Get the flags for this GlobalValue (see struct GVFlags). More... | |
| GlobalValue::LinkageTypes | linkage () const |
| Return linkage type recorded for this global value. More... | |
| void | setLinkage (GlobalValue::LinkageTypes Linkage) |
| Sets the linkage to the value determined by global summary-based optimization. More... | |
| bool | notEligibleToImport () const |
| Return true if this global value can't be imported. More... | |
| bool | liveRoot () const |
| Return true if this global value must be considered a root for live value analysis on the index. More... | |
| void | setLiveRoot () |
| Flag that this global value must be considered a root for live value analysis on the index. More... | |
| void | setNotEligibleToImport () |
| Flag that this global value cannot be imported. More... | |
| ArrayRef< ValueInfo > | refs () const |
| Return the list of values referenced by this global value definition. More... | |
Static Public Member Functions | |
| static bool | classof (const GlobalValueSummary *GVS) |
| Check if this is a function summary. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::GlobalValueSummary | |
| GlobalValueSummary (SummaryKind K, GVFlags Flags, std::vector< ValueInfo > Refs) | |
| GlobalValueSummary constructor. More... | |
Function summary information to aid decisions and implementation of importing.
Definition at line 247 of file ModuleSummaryIndex.h.
| typedef std::pair<ValueInfo, CalleeInfo> llvm::FunctionSummary::EdgeTy |
<CalleeValueInfo, CalleeInfo> call edge pair.
Definition at line 250 of file ModuleSummaryIndex.h.
|
inline |
Summary constructors.
Definition at line 265 of file ModuleSummaryIndex.h.
Return the list of <CalleeValueInfo, CalleeInfo> pairs.
Definition at line 281 of file ModuleSummaryIndex.h.
|
inlinestatic |
Check if this is a function summary.
Definition at line 273 of file ModuleSummaryIndex.h.
References llvm::GlobalValueSummary::FunctionKind, and llvm::GlobalValueSummary::getSummaryKind().
|
inline |
Get the instruction count recorded for this function.
Definition at line 278 of file ModuleSummaryIndex.h.
|
inline |
Returns the list of type identifiers used by this function.
Definition at line 284 of file ModuleSummaryIndex.h.
1.8.6