LLVM  10.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")
 
 STATISTIC (WriteOnlyLiveGVars, "Number of live global variables marked write only")
 
static void propagateAttributesToRefs (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)
 
static bool hasWriteOnlyFlag (const GlobalValueSummary *S)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "module-summary-index"

Definition at line 22 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 316 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 307 of file ModuleSummaryIndex.cpp.

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

Referenced by getNodeLabel().

◆ hasReadOnlyFlag()

static bool hasReadOnlyFlag ( const GlobalValueSummary S)
static

Definition at line 354 of file ModuleSummaryIndex.cpp.

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

◆ hasWriteOnlyFlag()

static bool hasWriteOnlyFlag ( const GlobalValueSummary S)
static

Definition at line 360 of file ModuleSummaryIndex.cpp.

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

◆ linkageToString()

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

◆ propagateAttributesToRefs()

static void propagateAttributesToRefs ( GlobalValueSummary S)
static

◆ 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  
)