LLVM 24.0.0git
StaticDataProfileInfo.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
namespace  llvm::memprof

Macros

#define DEBUG_TYPE   "static-data-profile-info"

Functions

static bool llvm::memprof::hasExplicitSectionName (const GlobalVariable &GVar)
LLVM_ABI AnnotationKind llvm::memprof::getAnnotationKind (const GlobalVariable &GV)
 Returns the annotation kind of the global variable GV.
LLVM_ABI bool llvm::memprof::IsAnnotationOK (const GlobalVariable &GV)
 Returns true if the annotation kind of the global variable GV is AnnotationOK.
static std::unique_ptr< StaticDataProfileInfo > computeStaticDataProfileInfo (Module &M)
 INITIALIZE_PASS (StaticDataProfileInfoWrapperPass, "static-data-profile-info", "Static Data Profile Info", false, true) StaticDataProfileInfoWrapperPass

Variables

cl::opt< bool > PreserveHotDataSectionPrefix ("preserve-hot-data-section-prefix", cl::Hidden, cl::init(true), cl::desc("If true, hot data section prefixes are preserved"))
cl::opt< bool > llvm::AnnotateStringLiteralSectionPrefix ("memprof-annotate-string-literal-section-prefix", cl::init(true), cl::Hidden, cl::desc("If true, annotate the string literal data section prefix"))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "static-data-profile-info"

Definition at line 11 of file StaticDataProfileInfo.cpp.

Function Documentation

◆ computeStaticDataProfileInfo()

std::unique_ptr< StaticDataProfileInfo > computeStaticDataProfileInfo ( Module & M)
static

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( StaticDataProfileInfoWrapperPass ,
"static-data-profile-info" ,
"Static Data Profile Info" ,
false ,
true  )

Definition at line 215 of file StaticDataProfileInfo.cpp.

Variable Documentation

◆ PreserveHotDataSectionPrefix

cl::opt< bool > PreserveHotDataSectionPrefix("preserve-hot-data-section-prefix", cl::Hidden, cl::init(true), cl::desc("If true, hot data section prefixes are preserved")) ( "preserve-hot-data-section-prefix" ,
cl::Hidden ,
cl::init(true) ,
cl::desc("If true, hot data section prefixes are preserved")  )