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
This commit is contained in:
Benjamin Kramer 2016-01-27 16:05:42 +00:00
parent 509a6e348c
commit f80dcd65f5
3 changed files with 14 additions and 18 deletions

View File

@ -654,6 +654,19 @@ namespace llvm {
/// memory accesses to target specific intrinsics.
///
FunctionPass *createInterleavedAccessPass(const TargetMachine *TM);
/// LowerEmuTLS - This pass generates __emutls_[vt].xyz variables for all
/// TLS variables for the emulated TLS model.
///
ModulePass *createLowerEmuTLSPass(const TargetMachine *TM);
/// GlobalMerge - This pass merges internal (by default) globals into structs
/// to enable reuse of a base pointer by indexed addressing modes.
/// It can also be configured to focus on size optimizations only.
///
Pass *createGlobalMergePass(const TargetMachine *TM, unsigned MaximalOffset,
bool OnlyOptimizeForSize = false,
bool MergeExternalByDefault = false);
} // End llvm namespace
/// Target machine pass initializer for passes with dependencies. Use with

View File

@ -154,16 +154,6 @@ Pass *createLoopInterchangePass();
//
Pass *createLoopStrengthReducePass();
//===----------------------------------------------------------------------===//
//
// GlobalMerge - This pass merges internal (by default) globals into structs
// to enable reuse of a base pointer by indexed addressing modes.
// It can also be configured to focus on size optimizations only.
//
Pass *createGlobalMergePass(const TargetMachine *TM, unsigned MaximalOffset,
bool OnlyOptimizeForSize = false,
bool MergeExternalByDefault = false);
//===----------------------------------------------------------------------===//
//
// LoopUnswitch - This pass is a simple loop unswitching pass.
@ -380,13 +370,6 @@ FunctionPass *createSinkingPass();
//
Pass *createLowerAtomicPass();
//===----------------------------------------------------------------------===//
//
// LowerEmuTLS - This pass generates __emutls_[vt].xyz variables for all
// TLS variables for the emulated TLS model.
//
ModulePass *createLowerEmuTLSPass(const TargetMachine *TM);
//===----------------------------------------------------------------------===//
//
// ValuePropagation - Propagate CFG-derived value information

View File

@ -14,8 +14,8 @@
//
//===----------------------------------------------------------------------===//
#include "llvm/Transforms/Scalar.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/Pass.h"