LLVM 23.0.0git
ExpandMemCmp.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "expand-memcmp"

Functions

 STATISTIC (NumMemCmpCalls, "Number of memcmp calls")
 STATISTIC (NumMemCmpNotConstant, "Number of memcmp calls without constant size")
 STATISTIC (NumMemCmpGreaterThanMax, "Number of memcmp calls with size greater than max size")
 STATISTIC (NumMemCmpInlined, "Number of inlined memcmp calls")

Variables

static cl::opt< unsignedMemCmpEqZeroNumLoadsPerBlock ("memcmp-num-loads-per-block", cl::Hidden, cl::init(1), cl::desc("The number of loads per basic block for inline expansion of " "memcmp that is only being compared against zero."))
static cl::opt< unsignedMaxLoadsPerMemcmp ("max-loads-per-memcmp", cl::Hidden, cl::desc("Set maximum number of loads used in expanded memcmp"))
static cl::opt< unsignedMaxLoadsPerMemcmpOptSize ("max-loads-per-memcmp-opt-size", cl::Hidden, cl::desc("Set maximum number of loads used in expanded memcmp for -Os/Oz"))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "expand-memcmp"

Definition at line 35 of file ExpandMemCmp.cpp.

Function Documentation

◆ STATISTIC() [1/4]

STATISTIC ( NumMemCmpCalls ,
"Number of memcmp calls"  )

◆ STATISTIC() [2/4]

STATISTIC ( NumMemCmpGreaterThanMax ,
"Number of memcmp calls with size greater than max size"  )

◆ STATISTIC() [3/4]

STATISTIC ( NumMemCmpInlined ,
"Number of inlined memcmp calls"  )

◆ STATISTIC() [4/4]

STATISTIC ( NumMemCmpNotConstant ,
"Number of memcmp calls without constant size"  )

Variable Documentation

◆ MaxLoadsPerMemcmp

cl::opt< unsigned > MaxLoadsPerMemcmp("max-loads-per-memcmp", cl::Hidden, cl::desc("Set maximum number of loads used in expanded memcmp")) ( "max-loads-per-memcmp" ,
cl::Hidden ,
cl::desc("Set maximum number of loads used in expanded memcmp")  )
static

◆ MaxLoadsPerMemcmpOptSize

cl::opt< unsigned > MaxLoadsPerMemcmpOptSize("max-loads-per-memcmp-opt-size", cl::Hidden, cl::desc("Set maximum number of loads used in expanded memcmp for -Os/Oz")) ( "max-loads-per-memcmp-opt-size" ,
cl::Hidden ,
cl::desc("Set maximum number of loads used in expanded memcmp for -Os/Oz")  )
static

◆ MemCmpEqZeroNumLoadsPerBlock

cl::opt< unsigned > MemCmpEqZeroNumLoadsPerBlock("memcmp-num-loads-per-block", cl::Hidden, cl::init(1), cl::desc("The number of loads per basic block for inline expansion of " "memcmp that is only being compared against zero.")) ( "memcmp-num-loads-per-block" ,
cl::Hidden ,
cl::init(1) ,
cl::desc("The number of loads per basic block for inline expansion of " "memcmp that is only being compared against zero.")  )
static