From e0e628a40169a09f870230532341b48d4b31e0d0 Mon Sep 17 00:00:00 2001 From: Alkis Evlogimenos Date: Mon, 28 Mar 2005 02:01:12 +0000 Subject: [PATCH] Rename createPromoteMemoryToRegister() to createPromoteMemoryToRegisterPass() to be consistent with other pass creation functions. llvm-svn: 20885 --- include/llvm/Transforms/Scalar.h | 2 +- lib/Transforms/Scalar/Mem2Reg.cpp | 3 +-- projects/Stacker/lib/compiler/StackerCompiler.cpp | 2 +- tools/gccas/gccas.cpp | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/llvm/Transforms/Scalar.h b/include/llvm/Transforms/Scalar.h index 7832c93be99..a7542fb94be 100644 --- a/include/llvm/Transforms/Scalar.h +++ b/include/llvm/Transforms/Scalar.h @@ -160,7 +160,7 @@ FunctionPass *createLoopUnrollPass(); // %Y = load int* %X // ret int %Y // -FunctionPass *createPromoteMemoryToRegister(); +FunctionPass *createPromoteMemoryToRegisterPass(); //===----------------------------------------------------------------------===// diff --git a/lib/Transforms/Scalar/Mem2Reg.cpp b/lib/Transforms/Scalar/Mem2Reg.cpp index e6eb81577fa..1c8fa3b3f5b 100644 --- a/lib/Transforms/Scalar/Mem2Reg.cpp +++ b/lib/Transforms/Scalar/Mem2Reg.cpp @@ -76,7 +76,6 @@ bool PromotePass::runOnFunction(Function &F) { // createPromoteMemoryToRegister - Provide an entry point to create this pass. // -FunctionPass *llvm::createPromoteMemoryToRegister() { +FunctionPass *llvm::createPromoteMemoryToRegisterPass() { return new PromotePass(); } - diff --git a/projects/Stacker/lib/compiler/StackerCompiler.cpp b/projects/Stacker/lib/compiler/StackerCompiler.cpp index 432ffe9b2b6..57a35a6c77d 100644 --- a/projects/Stacker/lib/compiler/StackerCompiler.cpp +++ b/projects/Stacker/lib/compiler/StackerCompiler.cpp @@ -331,7 +331,7 @@ StackerCompiler::compile( // Merge & remove BBs Passes.add(createCFGSimplificationPass()); // Memory To Register - Passes.add(createPromoteMemoryToRegister()); + Passes.add(createPromoteMemoryToRegisterPass()); // Compile silly sequences Passes.add(createInstructionCombiningPass()); // Make sure everything is still good. diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index 7e22235f7c0..1626afed62f 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp @@ -83,7 +83,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) { addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst addPass(PM, createCFGSimplificationPass()); // Clean up disgusting code - addPass(PM, createPromoteMemoryToRegister()); // Kill useless allocas + addPass(PM, createPromoteMemoryToRegisterPass());// Kill useless allocas addPass(PM, createGlobalOptimizerPass()); // Optimize out global vars addPass(PM, createGlobalDCEPass()); // Remove unused fns and globs addPass(PM, createIPConstantPropagationPass());// IP Constant Propagation