mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Rename createPromoteMemoryToRegister() to
createPromoteMemoryToRegisterPass() to be consistent with other pass creation functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20885 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
493f6366cb
commit
ab7ada3ed6
@ -160,7 +160,7 @@ FunctionPass *createLoopUnrollPass();
|
||||
// %Y = load int* %X
|
||||
// ret int %Y
|
||||
//
|
||||
FunctionPass *createPromoteMemoryToRegister();
|
||||
FunctionPass *createPromoteMemoryToRegisterPass();
|
||||
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user