LLVM: lib/IR/ModuleSummaryIndex.cpp File Reference (original) (raw)
Go to the source code of this file.
| Macros | |
|---|---|
| #define | DEBUG_TYPE "module-summary-index" |
| Functions | |
|---|---|
| STATISTIC (ReadOnlyLiveGVars, "Number of live global variables marked read only") | |
| STATISTIC (WriteOnlyLiveGVars, "Number of live global variables marked write only") | |
| static void | propagateAttributesToRefs (GlobalValueSummary *S, DenseSet< ValueInfo > &MarkedNonReadWriteOnly) |
| static std::string | linkageToString (GlobalValue::LinkageTypes LT) |
| static std::string | fflagsToString (FunctionSummary::FFlags F) |
| static std::string | getSummaryAttributes (GlobalValueSummary *GVS) |
| static std::string | getNodeVisualName (GlobalValue::GUID Id) |
| static std::string | getNodeVisualName (const ValueInfo &VI) |
| static std::string | getNodeLabel (const ValueInfo &VI, GlobalValueSummary *GVS) |
| static void | defineExternalNode (raw_ostream &OS, const char *Pfx, const ValueInfo &VI, GlobalValue::GUID Id) |
| static bool | hasReadOnlyFlag (const GlobalValueSummary *S) |
| static bool | hasWriteOnlyFlag (const GlobalValueSummary *S) |
| static bool | hasConstantFlag (const GlobalValueSummary *S) |
| Variables | |
|---|---|
| static cl::opt< bool > | PropagateAttrs ("propagate-attrs", cl::init(true), cl::Hidden, cl::desc("Propagate attributes in index")) |
| static cl::opt< bool > | ImportConstantsWithRefs ("import-constants-with-refs", cl::init(true), cl::Hidden, cl::desc("Import constant global variables with references")) |
◆ DEBUG_TYPE
#define DEBUG_TYPE "module-summary-index"
◆ defineExternalNode()
◆ fflagsToString()
◆ getNodeLabel()
◆ getNodeVisualName() [1/2]
◆ getNodeVisualName() [2/2]
◆ getSummaryAttributes()
◆ hasConstantFlag()
◆ hasReadOnlyFlag()
◆ hasWriteOnlyFlag()
◆ linkageToString()
Definition at line 449 of file ModuleSummaryIndex.cpp.
References llvm::GlobalValue::AppendingLinkage, llvm::GlobalValue::AvailableExternallyLinkage, llvm::GlobalValue::CommonLinkage, llvm::GlobalValue::ExternalLinkage, llvm::GlobalValue::ExternalWeakLinkage, llvm::GlobalValue::InternalLinkage, llvm::GlobalValue::LinkOnceAnyLinkage, llvm::GlobalValue::LinkOnceODRLinkage, llvm::GlobalValue::PrivateLinkage, llvm::GlobalValue::WeakAnyLinkage, and llvm::GlobalValue::WeakODRLinkage.
Referenced by getNodeLabel().
◆ propagateAttributesToRefs()
Definition at line 205 of file ModuleSummaryIndex.cpp.
References assert(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::contains(), llvm::dyn_cast(), llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), llvm::isa(), llvm::Ref, and llvm::GlobalValueSummary::refs().
Referenced by llvm::ModuleSummaryIndex::propagateAttributes().
◆ STATISTIC() [1/2]
| STATISTIC | ( | ReadOnlyLiveGVars | , |
|---|---|---|---|
| "Number of live global variables marked read only" | ) |
◆ STATISTIC() [2/2]
| STATISTIC | ( | WriteOnlyLiveGVars | , |
|---|---|---|---|
| "Number of live global variables marked write only" | ) |
◆ ImportConstantsWithRefs
| cl::opt< bool > ImportConstantsWithRefs("import-constants-with-refs", cl::init(true), cl::Hidden, cl::desc("Import constant global variables with references")) ( "import-constants-with-refs" , cl::init(true) , cl::Hidden , cl::desc("Import constant global variables with references") ) | static |
|---|
◆ PropagateAttrs
| cl::opt< bool > PropagateAttrs("propagate-attrs", cl::init(true), cl::Hidden, cl::desc("Propagate attributes in index")) ( "propagate-attrs" , cl::init(true) , cl::Hidden , cl::desc("Propagate attributes in index") ) | static |
|---|