LLVM  8.0.0svn
Macros | Functions
ModuleSummaryIndex.cpp File Reference
#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"
Include dependency graph for ModuleSummaryIndex.cpp:

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)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "module-summary-index"

Definition at line 23 of file ModuleSummaryIndex.cpp.

Function Documentation

◆ defineExternalNode()

static void defineExternalNode ( raw_ostream OS,
const char Pfx,
const ValueInfo VI,
GlobalValue::GUID  Id 
)
static

◆ fflagsToString()

static std::string fflagsToString ( FunctionSummary::FFlags  F)
static

◆ getNodeLabel()

static std::string getNodeLabel ( const ValueInfo VI,
GlobalValueSummary GVS 
)
static

◆ getNodeVisualName() [1/2]

static std::string getNodeVisualName ( GlobalValue::GUID  Id)
static

Definition at line 298 of file ModuleSummaryIndex.cpp.

References llvm::to_string().

Referenced by defineExternalNode(), getNodeLabel(), and getNodeVisualName().

◆ getNodeVisualName() [2/2]

static std::string getNodeVisualName ( const ValueInfo VI)
static

◆ getSummaryAttributes()

static std::string getSummaryAttributes ( GlobalValueSummary GVS)
static

Definition at line 289 of file ModuleSummaryIndex.cpp.

References fflagsToString(), and llvm::to_string().

Referenced by getNodeLabel().

◆ hasReadOnlyFlag()

static bool hasReadOnlyFlag ( const GlobalValueSummary S)
static

Definition at line 336 of file ModuleSummaryIndex.cpp.

Referenced by llvm::ModuleSummaryIndex::exportToDot().

◆ linkageToString()

static std::string linkageToString ( GlobalValue::LinkageTypes  LT)
static

◆ propagateConstantsToRefs()

static void propagateConstantsToRefs ( GlobalValueSummary S)
static

◆ STATISTIC()

STATISTIC ( ReadOnlyLiveGVars  ,
"Number of live global variables marked read only  
)