summaryrefslogtreecommitdiffstats
path: root/lib/Transforms/IPO
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-26 21:12:46 +0000
committerChris Lattner <sabre@nondot.org>2002-07-26 21:12:46 +0000
commita6275ccdf5e1aa208afde56c498e2b13e16442f0 (patch)
tree2d1245344fa06c38f7d6a9cd21649b6927d25307 /lib/Transforms/IPO
parent1e43516dcf4aa152432447397334cd43744d63e1 (diff)
downloadexternal_llvm-a6275ccdf5e1aa208afde56c498e2b13e16442f0.zip
external_llvm-a6275ccdf5e1aa208afde56c498e2b13e16442f0.tar.gz
external_llvm-a6275ccdf5e1aa208afde56c498e2b13e16442f0.tar.bz2
* Add support for different "PassType's"
* Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Add support for different "PassType's" * Add new RegisterOpt/RegisterAnalysis templates for registering passes that are to show up in opt or analyze * Register Analyses now * Change optimizations to use RegisterOpt instead of RegisterPass * Remove getPassName implementations from various subclasses git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3113 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r--lib/Transforms/IPO/InlineSimple.cpp2
-rw-r--r--lib/Transforms/IPO/RaiseAllocations.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/InlineSimple.cpp b/lib/Transforms/IPO/InlineSimple.cpp
index 3c76a33..924ad5c 100644
--- a/lib/Transforms/IPO/InlineSimple.cpp
+++ b/lib/Transforms/IPO/InlineSimple.cpp
@@ -261,7 +261,7 @@ namespace {
return doFunctionInlining(F);
}
};
- RegisterPass<FunctionInlining> X("inline", "Function Integration/Inlining");
+ RegisterOpt<FunctionInlining> X("inline", "Function Integration/Inlining");
}
Pass *createFunctionInliningPass() { return new FunctionInlining(); }
diff --git a/lib/Transforms/IPO/RaiseAllocations.cpp b/lib/Transforms/IPO/RaiseAllocations.cpp
index fae1767..0f10dad 100644
--- a/lib/Transforms/IPO/RaiseAllocations.cpp
+++ b/lib/Transforms/IPO/RaiseAllocations.cpp
@@ -39,8 +39,8 @@ public:
bool runOnBasicBlock(BasicBlock &BB);
};
-RegisterPass<RaiseAllocations>
-X("raiseallocs", "Raise allocations from calls to instructions");
+ RegisterOpt<RaiseAllocations>
+ X("raiseallocs", "Raise allocations from calls to instructions");
} // end anonymous namespace