summaryrefslogtreecommitdiff
path: root/include/llvm/Pass.h
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2010-10-20 01:54:44 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2010-10-20 01:54:44 +0000
commit65513605353c7e3ee8be6fc92892f257ad399d92 (patch)
tree5ed1eadcd13601b914a22908e03ef41152586b4f /include/llvm/Pass.h
parent3e26c3c7d4c652811ab1ec5bd0f2a749c372709b (diff)
downloadllvm-65513605353c7e3ee8be6fc92892f257ad399d92.tar.gz
llvm-65513605353c7e3ee8be6fc92892f257ad399d92.tar.bz2
llvm-65513605353c7e3ee8be6fc92892f257ad399d92.tar.xz
Add RegionPass support.
A RegionPass is executed like a LoopPass but on the regions detected by the RegionInfo pass instead of the loops detected by the LoopInfo pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116905 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r--include/llvm/Pass.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index f4c6eed2cf..ed0fb39f5d 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -57,6 +57,7 @@ enum PassManagerType {
PMT_CallGraphPassManager, ///< CGPassManager
PMT_FunctionPassManager, ///< FPPassManager
PMT_LoopPassManager, ///< LPPassManager
+ PMT_RegionPassManager, ///< RGPassManager
PMT_BasicBlockPassManager, ///< BBPassManager
PMT_Last
};
@@ -64,13 +65,14 @@ enum PassManagerType {
// Different types of passes.
enum PassKind {
PT_BasicBlock,
+ PT_Region,
PT_Loop,
PT_Function,
PT_CallGraphSCC,
PT_Module,
PT_PassManager
};
-
+
//===----------------------------------------------------------------------===//
/// Pass interface - Implemented by all 'passes'. Subclass this if you are an
/// interprocedural optimization or you do not fit into any of the more