#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 oflive global variables marked read only") | |
STATISTIC (WriteOnlyLiveGVars, "Number oflive global variables markedwrite only") | |
static void | propagateAttributesToRefs (GlobalValueSummary *S,DenseSet<ValueInfo > &MarkedNonReadWriteOnly) |
static std::string | linkageToString (GlobalValue::LinkageTypes LT) |
static std::string | fflagsToString (FunctionSummary::FFlagsF) |
static std::string | getSummaryAttributes (GlobalValueSummary *GVS) |
static std::string | getNodeVisualName (GlobalValue::GUID Id) |
static std::string | getNodeVisualName (constValueInfo &VI) |
static std::string | getNodeLabel (constValueInfo &VI,GlobalValueSummary *GVS) |
static void | defineExternalNode (raw_ostream &OS,constchar *Pfx,constValueInfo &VI,GlobalValue::GUID Id) |
staticbool | hasReadOnlyFlag (constGlobalValueSummary *S) |
staticbool | hasWriteOnlyFlag (constGlobalValueSummary *S) |
staticbool | hasConstantFlag (constGlobalValueSummary *S) |
Variables | |
staticcl::opt<bool > | PropagateAttrs ("propagate-attrs", cl::init(true), cl::Hidden,cl::desc("Propagate attributes in index")) |
staticcl::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 line22 of fileModuleSummaryIndex.cpp.
| static |
Definition at line528 of fileModuleSummaryIndex.cpp.
ReferencesgetNodeVisualName(), andOS.
Referenced byllvm::ModuleSummaryIndex::exportToDot().
| static |
Definition at line476 of fileModuleSummaryIndex.cpp.
ReferencesF.
Referenced bygetSummaryAttributes().
| static |
Definition at line511 of fileModuleSummaryIndex.cpp.
ReferencesgetNodeVisualName(),getSummaryAttributes(),llvm::GlobalValueSummary::linkage(), andlinkageToString().
Referenced byllvm::ModuleSummaryIndex::exportToDot(), andllvm::DOTGraphTraits< DOTFuncMSSAInfo * >::getNodeAttributes().
Definition at line507 of fileModuleSummaryIndex.cpp.
ReferencesgetNodeVisualName().
| static |
Definition at line503 of fileModuleSummaryIndex.cpp.
Referenced bydefineExternalNode(),getNodeLabel(), andgetNodeVisualName().
| static |
Definition at line494 of fileModuleSummaryIndex.cpp.
ReferencesfflagsToString().
Referenced bygetNodeLabel().
| static |
Definition at line553 of fileModuleSummaryIndex.cpp.
Referenced byllvm::ModuleSummaryIndex::exportToDot().
| static |
Definition at line541 of fileModuleSummaryIndex.cpp.
Referenced byllvm::ModuleSummaryIndex::exportToDot().
| static |
Definition at line547 of fileModuleSummaryIndex.cpp.
Referenced byllvm::ModuleSummaryIndex::exportToDot().
| static |
Definition at line447 of fileModuleSummaryIndex.cpp.
Referencesllvm::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, andllvm::GlobalValue::WeakODRLinkage.
Referenced bygetNodeLabel().
| static |
Definition at line203 of fileModuleSummaryIndex.cpp.
Referencesassert(),llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::contains(),llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(),llvm::Ref, andllvm::GlobalValueSummary::refs().
Referenced byllvm::ModuleSummaryIndex::propagateAttributes().
STATISTIC | ( | ReadOnlyLiveGVars | , |
"Number oflive global variables marked read only" | |||
) |
| static |
Referenced byllvm::ModuleSummaryIndex::canImportGlobalVar().