diff --git a/include/llvm/CodeGen/Passes.h b/include/llvm/CodeGen/Passes.h index f45f0ed57d6..69ad130f761 100644 --- a/include/llvm/CodeGen/Passes.h +++ b/include/llvm/CodeGen/Passes.h @@ -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 diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index 797ef6a27ae..018269fced5 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -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 diff --git a/lib/CodeGen/LowerEmuTLS.cpp b/lib/CodeGen/LowerEmuTLS.cpp index 58655dc043d..0b9a501e395 100644 --- a/lib/CodeGen/LowerEmuTLS.cpp +++ b/lib/CodeGen/LowerEmuTLS.cpp @@ -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"