LLVM 24.0.0git
CopyProf.cpp File Reference

Go to the source code of this file.

Functions

static bool insertModuleCtor (Module &M)
static bool isCopyProfCandidate (const Function &F)
static bool isCopyProfStoresCandidate (const Function &F)
static size_t getAttrValueAsInt (const Function &F, StringRef Attr)

Variables

constexpr StringRef CopyProfModuleCtorName = "copyprof.module_ctor"
constexpr StringRef CopyProfInitName = "__copyprof_init"
constexpr StringRef CopyProfCtorEnterCallbackName
constexpr StringRef CopyProfCtorExitCallbackName
constexpr StringRef CopyProfCopyCtorEnterCallbackName
constexpr StringRef CopyProfCopyCtorExitCallbackName
constexpr StringRef CopyProfCopyAssignOpEnterCallbackName
constexpr StringRef CopyProfCopyAssignOpExitCallbackName
constexpr StringRef CopyProfDtorEnterCallbackName
constexpr StringRef CopyProfDtorExitCallbackName
constexpr StringRef CopyProfStoreCallbackName = "__copyprof_store_callback"
constexpr StringRef CopyProfCtorAttr = "copyprof-ctor"
constexpr StringRef CopyProfCopyCtorAttr = "copyprof-copy-ctor"
constexpr StringRef CopyProfCopyAssignAttr = "copyprof-copy-assign-op"
constexpr StringRef CopyProfDtorAttr = "copyprof-dtor"

Function Documentation

◆ getAttrValueAsInt()

size_t getAttrValueAsInt ( const Function & F,
StringRef Attr )
static

Definition at line 128 of file CopyProf.cpp.

References assert(), F, Success, and llvm::to_integer().

◆ insertModuleCtor()

◆ isCopyProfCandidate()

bool isCopyProfCandidate ( const Function & F)
static

◆ isCopyProfStoresCandidate()

bool isCopyProfStoresCandidate ( const Function & F)
static

Definition at line 120 of file CopyProf.cpp.

References F.

Referenced by llvm::CopyProfStoresPass::run().

Variable Documentation

◆ CopyProfCopyAssignAttr

StringRef CopyProfCopyAssignAttr = "copyprof-copy-assign-op"
constexpr

Definition at line 74 of file CopyProf.cpp.

Referenced by isCopyProfCandidate().

◆ CopyProfCopyAssignOpEnterCallbackName

StringRef CopyProfCopyAssignOpEnterCallbackName
constexpr
Initial value:
=
"__copyprof_copy_assign_op_enter_callback"

Definition at line 61 of file CopyProf.cpp.

◆ CopyProfCopyAssignOpExitCallbackName

StringRef CopyProfCopyAssignOpExitCallbackName
constexpr
Initial value:
=
"__copyprof_copy_assign_op_exit_callback"

Definition at line 63 of file CopyProf.cpp.

◆ CopyProfCopyCtorAttr

StringRef CopyProfCopyCtorAttr = "copyprof-copy-ctor"
constexpr

Definition at line 73 of file CopyProf.cpp.

Referenced by isCopyProfCandidate().

◆ CopyProfCopyCtorEnterCallbackName

StringRef CopyProfCopyCtorEnterCallbackName
constexpr
Initial value:
=
"__copyprof_copy_ctor_enter_callback"

Definition at line 57 of file CopyProf.cpp.

◆ CopyProfCopyCtorExitCallbackName

StringRef CopyProfCopyCtorExitCallbackName
constexpr
Initial value:
=
"__copyprof_copy_ctor_exit_callback"

Definition at line 59 of file CopyProf.cpp.

◆ CopyProfCtorAttr

StringRef CopyProfCtorAttr = "copyprof-ctor"
constexpr

Definition at line 72 of file CopyProf.cpp.

Referenced by isCopyProfCandidate().

◆ CopyProfCtorEnterCallbackName

StringRef CopyProfCtorEnterCallbackName
constexpr
Initial value:
=
"__copyprof_ctor_enter_callback"

Definition at line 53 of file CopyProf.cpp.

◆ CopyProfCtorExitCallbackName

StringRef CopyProfCtorExitCallbackName
constexpr
Initial value:
=
"__copyprof_ctor_exit_callback"

Definition at line 55 of file CopyProf.cpp.

◆ CopyProfDtorAttr

StringRef CopyProfDtorAttr = "copyprof-dtor"
constexpr

Definition at line 75 of file CopyProf.cpp.

Referenced by isCopyProfCandidate().

◆ CopyProfDtorEnterCallbackName

StringRef CopyProfDtorEnterCallbackName
constexpr
Initial value:
=
"__copyprof_dtor_enter_callback"

Definition at line 65 of file CopyProf.cpp.

◆ CopyProfDtorExitCallbackName

StringRef CopyProfDtorExitCallbackName
constexpr
Initial value:
=
"__copyprof_dtor_exit_callback"

Definition at line 67 of file CopyProf.cpp.

◆ CopyProfInitName

StringRef CopyProfInitName = "__copyprof_init"
constexpr

Definition at line 50 of file CopyProf.cpp.

Referenced by insertModuleCtor().

◆ CopyProfModuleCtorName

StringRef CopyProfModuleCtorName = "copyprof.module_ctor"
constexpr

Definition at line 49 of file CopyProf.cpp.

Referenced by insertModuleCtor().

◆ CopyProfStoreCallbackName

StringRef CopyProfStoreCallbackName = "__copyprof_store_callback"
constexpr

Definition at line 69 of file CopyProf.cpp.