// ScalarReplAggregates - Break up alloca's of aggregates into multiple allocas
// if possible.
//
-FunctionPass *createScalarReplAggregatesPass(signed Threshold = -1);
+FunctionPass *createScalarReplAggregatesPass(signed Threshold = -1,
+ bool UseDomTree = true);
//===----------------------------------------------------------------------===//
//
//
Pass *createLoopUnswitchPass(bool OptimizeForSize = false);
+//===----------------------------------------------------------------------===//
+//
+// LoopInstSimplify - This pass simplifies instructions in a loop's body.
+//
+Pass *createLoopInstSimplifyPass();
+
//===----------------------------------------------------------------------===//
//
// LoopUnroll - This pass is a simple loop unrolling pass.
//
-Pass *createLoopUnrollPass();
+Pass *createLoopUnrollPass(int Threshold = -1, int Count = -1, int AllowPartial = -1);
//===----------------------------------------------------------------------===//
//
//===----------------------------------------------------------------------===//
//
-// LoopIndexSplit - This pass divides loop's iteration range by spliting loop
-// such that each individual loop is executed efficiently.
+// LoopIdiom - This pass recognizes and replaces idioms in loops.
//
-Pass *createLoopIndexSplitPass();
-
+Pass *createLoopIdiomPass();
+
//===----------------------------------------------------------------------===//
//
// PromoteMemoryToRegister - This pass is used to promote memory references to
//
FunctionPass *createReassociatePass();
-//===----------------------------------------------------------------------===//
-//
-// TailDuplication - Eliminate unconditional branches through controlled code
-// duplication, creating simpler CFG structures.
-//
-FunctionPass *createTailDuplicationPass();
-
//===----------------------------------------------------------------------===//
//
// JumpThreading - Thread control through mult-pred/multi-succ blocks where some
Pass *createLCSSAPass();
extern char &LCSSAID;
+//===----------------------------------------------------------------------===//
+//
+// EarlyCSE - This pass performs a simple and fast CSE pass over the dominator
+// tree.
+//
+FunctionPass *createEarlyCSEPass();
+
//===----------------------------------------------------------------------===//
//
// GVN - This pass performs global value numbering and redundant load
/// specific well-known (library) functions.
FunctionPass *createSimplifyLibCallsPass();
-//===----------------------------------------------------------------------===//
-//
-/// createSimplifyHalfPowrLibCallsPass - This is an experimental pass that
-/// optimizes specific half_pow functions.
-FunctionPass *createSimplifyHalfPowrLibCallsPass();
-
//===----------------------------------------------------------------------===//
//
// CodeGenPrepare - This pass prepares a function for instruction selection.
//===----------------------------------------------------------------------===//
//
-// SSI - This pass converts instructions to Static Single Information form
-// on demand.
+// GEPSplitter - Split complex GEPs into simple ones
+//
+FunctionPass *createGEPSplitterPass();
+
+//===----------------------------------------------------------------------===//
+//
+// Sink - Code Sinking
//
-FunctionPass *createSSIPass();
+FunctionPass *createSinkingPass();
//===----------------------------------------------------------------------===//
//
-// SSI - This pass converts every non-void instuction to Static Single
-// Information form.
+// LowerAtomic - Lower atomic intrinsics to non-atomic form
//
-FunctionPass *createSSIEverythingPass();
+Pass *createLowerAtomicPass();
//===----------------------------------------------------------------------===//
//
-// GEPSplitter - Split complex GEPs into simple ones
+// ValuePropagation - Propagate CFG-derived value information
//
-FunctionPass *createGEPSplitterPass();
+Pass *createCorrelatedValuePropagationPass();
//===----------------------------------------------------------------------===//
//
-// ABCD - Elimination of Array Bounds Checks on Demand
+// ObjCARCExpand - ObjC ARC preliminary simplifications.
//
-FunctionPass *createABCDPass();
+Pass *createObjCARCExpandPass();
//===----------------------------------------------------------------------===//
//
-// Sink - Code Sinking
+// ObjCARCContract - Late ObjC ARC cleanups.
//
-FunctionPass *createSinkingPass();
+Pass *createObjCARCContractPass();
//===----------------------------------------------------------------------===//
//
-// LowerAtomic - Lower atomic intrinsics to non-atomic form
+// ObjCARCOpt - ObjC ARC optimization.
//
-Pass *createLowerAtomicPass();
+Pass *createObjCARCOptPass();
+
+//===----------------------------------------------------------------------===//
+//
+// InstructionSimplifier - Remove redundant instructions.
+//
+FunctionPass *createInstructionSimplifierPass();
+extern char &InstructionSimplifierID;
+
+
+//===----------------------------------------------------------------------===//
+//
+// LowerExpectIntriniscs - Removes llvm.expect intrinsics and creates
+// "block_weights" metadata.
+FunctionPass *createLowerExpectIntrinsicPass();
+
} // End llvm namespace