LLVM  10.0.0
Macros | Functions | Variables
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/CommandLine.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)
 

Variables

static cl::opt< bool > PropagateAttrs ("propagate-attrs", cl::init(true), cl::Hidden, cl::desc("Propagate attributes in index"))
 

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 358 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 349 of file ModuleSummaryIndex.cpp.

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

Referenced by getNodeLabel().

◆ hasReadOnlyFlag()

static bool hasReadOnlyFlag ( const GlobalValueSummary *  S)
static

Definition at line 396 of file ModuleSummaryIndex.cpp.

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

◆ hasWriteOnlyFlag()

static bool hasWriteOnlyFlag ( const GlobalValueSummary *  S)
static

Definition at line 402 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"   
)

Variable Documentation

◆ PropagateAttrs

cl::opt<bool> PropagateAttrs("propagate-attrs", cl::init(true), cl::Hidden, cl::desc("Propagate attributes in index"))
static