LLVM
15.0.0git
|
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/DomTreeUpdater.h"
#include "llvm/Analysis/LazyBlockFrequencyInfo.h"
#include "llvm/Analysis/ProfileSummaryInfo.h"
#include "llvm/Analysis/TargetLibraryInfo.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/CodeGen/TargetPassConfig.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/InitializePasses.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Transforms/Utils/BasicBlockUtils.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/Transforms/Utils/SizeOpts.h"
Go to the source code of this file.
Namespaces | |
llvm | |
This is an optimization pass for GlobalISel generic memory operations. | |
Macros | |
#define | DEBUG_TYPE "expandmemcmp" |
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") | |
INITIALIZE_PASS_BEGIN (ExpandMemCmpPass, "expandmemcmp", "Expand memcmp() to load/stores", false, false) INITIALIZE_PASS_END(ExpandMemCmpPass | |
Expand | memcmp () to load/stores" |
Variables | |
static 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.")) |
static cl::opt< unsigned > | MaxLoadsPerMemcmp ("max-loads-per-memcmp", cl::Hidden, cl::desc("Set maximum number of loads used in expanded memcmp")) |
static 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")) |
expandmemcmp | |
Expand | false |
#define DEBUG_TYPE "expandmemcmp" |
Definition at line 38 of file ExpandMemCmp.cpp.
INITIALIZE_PASS_BEGIN | ( | ExpandMemCmpPass | , |
"expandmemcmp" | , | ||
"Expand memcmp() to load/stores" | , | ||
false | , | ||
false | |||
) |
Expand memcmp | ( | ) |
expandmemcmp |
Definition at line 917 of file ExpandMemCmp.cpp.
Expand false |
Definition at line 918 of file ExpandMemCmp.cpp.
|
static |
|
static |