diff --git a/llvm/include/llvm/CodeGen/Passes.h b/llvm/include/llvm/CodeGen/Passes.h index f45f0ed57d6b..69ad130f761e 100644 --- a/llvm/include/llvm/CodeGen/Passes.h +++ b/llvm/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/llvm/include/llvm/Transforms/Scalar.h b/llvm/include/llvm/Transforms/Scalar.h index 797ef6a27ae6..018269fced58 100644 --- a/llvm/include/llvm/Transforms/Scalar.h +++ b/llvm/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/llvm/lib/CodeGen/LowerEmuTLS.cpp b/llvm/lib/CodeGen/LowerEmuTLS.cpp index 58655dc043d7..0b9a501e395d 100644 --- a/llvm/lib/CodeGen/LowerEmuTLS.cpp +++ b/llvm/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"