diff options
-rw-r--r-- | llvm/include/llvm/Transforms/Scalar.h | 6 | ||||
-rw-r--r-- | llvm/include/llvm/Transforms/Utils.h | 7 | ||||
-rw-r--r-- | llvm/lib/Transforms/Scalar/Scalar.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/Transforms/Utils/Utils.cpp | 4 |
4 files changed, 10 insertions, 11 deletions
diff --git a/llvm/include/llvm/Transforms/Scalar.h b/llvm/include/llvm/Transforms/Scalar.h index c52a3c2815a..550219129e8 100644 --- a/llvm/include/llvm/Transforms/Scalar.h +++ b/llvm/include/llvm/Transforms/Scalar.h @@ -488,6 +488,12 @@ ModulePass *createNameAnonGlobalPass(); // FunctionPass *createLibCallsShrinkWrapPass(); +//===----------------------------------------------------------------------===// +// +// LoopSimplifyCFG - This pass performs basic CFG simplification on loops, +// primarily to help other loop passes. +// +Pass *createLoopSimplifyCFGPass(); } // End llvm namespace #endif diff --git a/llvm/include/llvm/Transforms/Utils.h b/llvm/include/llvm/Transforms/Utils.h index a7bbd2b759f..51edc51e038 100644 --- a/llvm/include/llvm/Transforms/Utils.h +++ b/llvm/include/llvm/Transforms/Utils.h @@ -112,13 +112,6 @@ extern char &LoopSimplifyID; //===----------------------------------------------------------------------===// // -// LoopSimplifyCFG - This pass performs basic CFG simplification on loops, -// primarily to help other loop passes. -// -Pass *createLoopSimplifyCFGPass(); - -//===----------------------------------------------------------------------===// -// // InstructionSimplifier - Remove redundant instructions. // FunctionPass *createInstructionSimplifierPass(); diff --git a/llvm/lib/Transforms/Scalar/Scalar.cpp b/llvm/lib/Transforms/Scalar/Scalar.cpp index 63ab350e0a5..accb30748fe 100644 --- a/llvm/lib/Transforms/Scalar/Scalar.cpp +++ b/llvm/lib/Transforms/Scalar/Scalar.cpp @@ -102,6 +102,10 @@ void llvm::initializeScalarOpts(PassRegistry &Registry) { initializePostInlineEntryExitInstrumenterPass(Registry); } +void LLVMAddLoopSimplifyCFGPass(LLVMPassManagerRef PM) { + unwrap(PM)->add(createLoopSimplifyCFGPass()); +} + void LLVMInitializeScalarOpts(LLVMPassRegistryRef R) { initializeScalarOpts(*unwrap(R)); } diff --git a/llvm/lib/Transforms/Utils/Utils.cpp b/llvm/lib/Transforms/Utils/Utils.cpp index 73a1ce32e92..71ceee67669 100644 --- a/llvm/lib/Transforms/Utils/Utils.cpp +++ b/llvm/lib/Transforms/Utils/Utils.cpp @@ -46,10 +46,6 @@ void LLVMInitializeTransformUtils(LLVMPassRegistryRef R) { initializeTransformUtils(*unwrap(R)); } -void LLVMAddLoopSimplifyCFGPass(LLVMPassManagerRef PM) { - unwrap(PM)->add(createLoopSimplifyCFGPass()); -} - void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM) { unwrap(PM)->add(createLowerSwitchPass()); } |