llvm.org GIT mirror llvm / f80dcd6
Move passes that live in lib/CodeGen out of Scalar.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@258938 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 4 years ago
3 changed file(s) with 14 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
653653 /// memory accesses to target specific intrinsics.
654654 ///
655655 FunctionPass *createInterleavedAccessPass(const TargetMachine *TM);
656
657 /// LowerEmuTLS - This pass generates __emutls_[vt].xyz variables for all
658 /// TLS variables for the emulated TLS model.
659 ///
660 ModulePass *createLowerEmuTLSPass(const TargetMachine *TM);
661
662 /// GlobalMerge - This pass merges internal (by default) globals into structs
663 /// to enable reuse of a base pointer by indexed addressing modes.
664 /// It can also be configured to focus on size optimizations only.
665 ///
666 Pass *createGlobalMergePass(const TargetMachine *TM, unsigned MaximalOffset,
667 bool OnlyOptimizeForSize = false,
668 bool MergeExternalByDefault = false);
656669 } // End llvm namespace
657670
658671 /// Target machine pass initializer for passes with dependencies. Use with
155155
156156 //===----------------------------------------------------------------------===//
157157 //
158 // GlobalMerge - This pass merges internal (by default) globals into structs
159 // to enable reuse of a base pointer by indexed addressing modes.
160 // It can also be configured to focus on size optimizations only.
161 //
162 Pass *createGlobalMergePass(const TargetMachine *TM, unsigned MaximalOffset,
163 bool OnlyOptimizeForSize = false,
164 bool MergeExternalByDefault = false);
165
166 //===----------------------------------------------------------------------===//
167 //
168158 // LoopUnswitch - This pass is a simple loop unswitching pass.
169159 //
170160 Pass *createLoopUnswitchPass(bool OptimizeForSize = false);
381371
382372 //===----------------------------------------------------------------------===//
383373 //
384 // LowerEmuTLS - This pass generates __emutls_[vt].xyz variables for all
385 // TLS variables for the emulated TLS model.
386 //
387 ModulePass *createLowerEmuTLSPass(const TargetMachine *TM);
388
389 //===----------------------------------------------------------------------===//
390 //
391374 // ValuePropagation - Propagate CFG-derived value information
392375 //
393376 Pass *createCorrelatedValuePropagationPass();
1313 //
1414 //===----------------------------------------------------------------------===//
1515
16 #include "llvm/Transforms/Scalar.h"
1716 #include "llvm/ADT/SmallVector.h"
17 #include "llvm/CodeGen/Passes.h"
1818 #include "llvm/IR/LLVMContext.h"
1919 #include "llvm/IR/Module.h"
2020 #include "llvm/Pass.h"