LLVM
8.0.1
|
#include "llvm/IR/ModuleSummaryIndex.h"
#include "llvm/ADT/SCCIterator.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringMap.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") | |
static void | propagateConstantsToRefs (GlobalValueSummary *S) |
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) |
#define DEBUG_TYPE "module-summary-index" |
Definition at line 23 of file ModuleSummaryIndex.cpp.
|
static |
Definition at line 323 of file ModuleSummaryIndex.cpp.
References getNodeVisualName(), and llvm::to_string().
Referenced by llvm::ModuleSummaryIndex::exportToDot().
|
static |
Definition at line 279 of file ModuleSummaryIndex.cpp.
References llvm::FunctionSummary::FFlags::NoInline, llvm::FunctionSummary::FFlags::NoRecurse, llvm::FunctionSummary::FFlags::ReadNone, llvm::FunctionSummary::FFlags::ReadOnly, and llvm::FunctionSummary::FFlags::ReturnDoesNotAlias.
Referenced by getSummaryAttributes().
|
static |
Definition at line 306 of file ModuleSummaryIndex.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Attrs, getNodeVisualName(), getSummaryAttributes(), llvm::GlobalValueSummary::linkage(), and linkageToString().
Referenced by llvm::ModuleSummaryIndex::exportToDot().
|
static |
Definition at line 298 of file ModuleSummaryIndex.cpp.
References llvm::to_string().
Referenced by defineExternalNode(), getNodeLabel(), and getNodeVisualName().
Definition at line 302 of file ModuleSummaryIndex.cpp.
References llvm::StringRef::empty(), llvm::ValueInfo::getGUID(), getNodeVisualName(), llvm::ValueInfo::name(), and llvm::StringRef::str().
|
static |
Definition at line 289 of file ModuleSummaryIndex.cpp.
References fflagsToString(), and llvm::to_string().
Referenced by getNodeLabel().
|
static |
Definition at line 336 of file ModuleSummaryIndex.cpp.
Referenced by llvm::ModuleSummaryIndex::exportToDot().
|
static |
Definition at line 250 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().
|
static |
Definition at line 104 of file ModuleSummaryIndex.cpp.
References assert(), llvm::Ref, llvm::GlobalValueSummary::refs(), and VI.
Referenced by llvm::ModuleSummaryIndex::propagateConstants().
STATISTIC | ( | ReadOnlyLiveGVars | , |
"Number of live global variables marked read only" | |||
) |