LLVM
15.0.0git
|
#include "llvm/IR/ModuleSummaryIndex.h"
#include "llvm/ADT/SCCIterator.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Path.h"
#include "llvm/Support/raw_ostream.h"
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")) |
#define DEBUG_TYPE "module-summary-index" |
Definition at line 22 of file ModuleSummaryIndex.cpp.
|
static |
Definition at line 499 of file ModuleSummaryIndex.cpp.
References getNodeVisualName(), llvm::to_string(), and VI.
Referenced by llvm::ModuleSummaryIndex::exportToDot().
|
static |
Definition at line 447 of file ModuleSummaryIndex.cpp.
References F.
Referenced by getSummaryAttributes().
|
static |
Definition at line 482 of file ModuleSummaryIndex.cpp.
References Attrs, llvm::Function::empty(), getNodeVisualName(), getSummaryAttributes(), llvm::GlobalValueSummary::linkage(), linkageToString(), and VI.
Referenced by llvm::ModuleSummaryIndex::exportToDot().
Definition at line 478 of file ModuleSummaryIndex.cpp.
References getNodeVisualName(), and VI.
|
static |
Definition at line 474 of file ModuleSummaryIndex.cpp.
References llvm::to_string().
Referenced by defineExternalNode(), getNodeLabel(), and getNodeVisualName().
|
static |
Definition at line 465 of file ModuleSummaryIndex.cpp.
References fflagsToString(), llvm::X86AS::FS, and llvm::to_string().
Referenced by getNodeLabel().
|
static |
Definition at line 524 of file ModuleSummaryIndex.cpp.
References S.
Referenced by llvm::ModuleSummaryIndex::exportToDot().
|
static |
Definition at line 512 of file ModuleSummaryIndex.cpp.
References S.
Referenced by llvm::ModuleSummaryIndex::exportToDot().
|
static |
Definition at line 518 of file ModuleSummaryIndex.cpp.
References S.
Referenced by llvm::ModuleSummaryIndex::exportToDot().
|
static |
Definition at line 418 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::AArch64CC::LT, llvm::GlobalValue::PrivateLinkage, llvm::GlobalValue::WeakAnyLinkage, and llvm::GlobalValue::WeakODRLinkage.
Referenced by getNodeLabel().
|
static |
Definition at line 188 of file ModuleSummaryIndex.cpp.
References assert(), llvm::detail::DenseSetImpl< ValueT, DenseMap< ValueT, detail::DenseSetEmpty, DenseMapInfo< ValueT >, detail::DenseSetPair< ValueT > >, DenseMapInfo< ValueT > >::contains(), llvm::detail::DenseSetImpl< ValueT, DenseMap< ValueT, detail::DenseSetEmpty, DenseMapInfo< ValueT >, detail::DenseSetPair< ValueT > >, DenseMapInfo< ValueT > >::insert(), llvm::Ref, S, and VI.
Referenced by llvm::ModuleSummaryIndex::propagateAttributes().
|
static |
Referenced by llvm::ModuleSummaryIndex::canImportGlobalVar().
|
static |
Referenced by llvm::ModuleSummaryIndex::propagateAttributes(), and llvm::thinLTOFinalizeInModule().