From 65513605353c7e3ee8be6fc92892f257ad399d92 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Wed, 20 Oct 2010 01:54:44 +0000 Subject: [PATCH] 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 --- docs/WritingAnLLVMPass.html | 87 +++++++++ include/llvm/Analysis/RegionPass.h | 126 +++++++++++++ include/llvm/Pass.h | 4 +- include/llvm/PassManagers.h | 1 + lib/Analysis/CMakeLists.txt | 1 + lib/Analysis/RegionPass.cpp | 276 +++++++++++++++++++++++++++++ lib/VMCore/PassManager.cpp | 3 + tools/opt/opt.cpp | 38 ++++ 8 files changed, 535 insertions(+), 1 deletion(-) create mode 100644 include/llvm/Analysis/RegionPass.h create mode 100644 lib/Analysis/RegionPass.cpp diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index 3cef2c93448..a1d55649016 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -51,6 +51,14 @@
  • The doFinalization() method
  • +
  • The RegionPass class +
  • The BasicBlockPass class