Movatterモバイル変換


[0]ホーム

URL:


LLVM 20.0.0git
Macros |Functions |Variables
ModuleSummaryIndex.cpp File Reference
#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<boolPropagateAttrs ("propagate-attrs", cl::init(true), cl::Hidden,cl::desc("Propagate attributes in index"))
 
staticcl::opt<boolImportConstantsWithRefs ("import-constants-with-refs", cl::init(true), cl::Hidden,cl::desc("Import constant global variables with references"))
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "module-summary-index"

Definition at line22 of fileModuleSummaryIndex.cpp.

Function Documentation

◆ defineExternalNode()

static void defineExternalNode(raw_ostreamOS,
constcharPfx,
constValueInfoVI,
GlobalValue::GUID Id 
)
static

Definition at line528 of fileModuleSummaryIndex.cpp.

ReferencesgetNodeVisualName(), andOS.

Referenced byllvm::ModuleSummaryIndex::exportToDot().

◆ fflagsToString()

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

Definition at line476 of fileModuleSummaryIndex.cpp.

ReferencesF.

Referenced bygetSummaryAttributes().

◆ getNodeLabel()

static std::string getNodeLabel(constValueInfoVI,
GlobalValueSummaryGVS 
)
static

Definition at line511 of fileModuleSummaryIndex.cpp.

ReferencesgetNodeVisualName(),getSummaryAttributes(),llvm::GlobalValueSummary::linkage(), andlinkageToString().

Referenced byllvm::ModuleSummaryIndex::exportToDot(), andllvm::DOTGraphTraits< DOTFuncMSSAInfo * >::getNodeAttributes().

◆ getNodeVisualName()[1/2]

static std::string getNodeVisualName(constValueInfoVI)
static

Definition at line507 of fileModuleSummaryIndex.cpp.

ReferencesgetNodeVisualName().

◆ getNodeVisualName()[2/2]

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

Definition at line503 of fileModuleSummaryIndex.cpp.

Referenced bydefineExternalNode(),getNodeLabel(), andgetNodeVisualName().

◆ getSummaryAttributes()

static std::string getSummaryAttributes(GlobalValueSummaryGVS)
static

Definition at line494 of fileModuleSummaryIndex.cpp.

ReferencesfflagsToString().

Referenced bygetNodeLabel().

◆ hasConstantFlag()

staticbool hasConstantFlag(constGlobalValueSummaryS)
static

Definition at line553 of fileModuleSummaryIndex.cpp.

Referenced byllvm::ModuleSummaryIndex::exportToDot().

◆ hasReadOnlyFlag()

staticbool hasReadOnlyFlag(constGlobalValueSummaryS)
static

Definition at line541 of fileModuleSummaryIndex.cpp.

Referenced byllvm::ModuleSummaryIndex::exportToDot().

◆ hasWriteOnlyFlag()

staticbool hasWriteOnlyFlag(constGlobalValueSummaryS)
static

Definition at line547 of fileModuleSummaryIndex.cpp.

Referenced byllvm::ModuleSummaryIndex::exportToDot().

◆ linkageToString()

static std::string linkageToString(GlobalValue::LinkageTypes LT)
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().

◆ propagateAttributesToRefs()

static void propagateAttributesToRefs(GlobalValueSummaryS,
DenseSet<ValueInfo > & MarkedNonReadWriteOnly 
)
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()[1/2]

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

◆ STATISTIC()[2/2]

STATISTIC(WriteOnlyLiveGVars ,
"Number oflive global variables markedwrite only"  
)

Variable Documentation

◆ ImportConstantsWithRefs

cl::opt<bool > ImportConstantsWithRefs("import-constants-with-refs", cl::init(true), cl::Hidden,cl::desc("Import constant global variables with references"))("import-constants-with-refs" ,
cl::init(true,
cl::Hidden ,
cl::desc("Import constant global variables with references")  
)
static

Referenced byllvm::ModuleSummaryIndex::canImportGlobalVar().

◆ PropagateAttrs

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

Referenced byllvm::ModuleSummaryIndex::propagateAttributes(), andllvm::thinLTOFinalizeInModule().


Generated on Sun Jul 20 2025 15:03:08 for LLVM by doxygen 1.9.6
[8]ページ先頭

©2009-2025 Movatter.jp