diff options
author | Devang Patel <dpatel@apple.com> | 2007-03-06 16:59:03 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-03-06 16:59:03 +0000 |
commit | a5057d02c05efc0ead8787c76a012382ef675b03 (patch) | |
tree | 7d7fc0d152a28c17b7ba3c78b6e7b11ff8c348e6 /include/llvm/Analysis/LoopPass.h | |
parent | 28b3c45109153bc50d3d9e97dccb25ffd043fa50 (diff) | |
download | llvm-a5057d02c05efc0ead8787c76a012382ef675b03.tar.gz llvm-a5057d02c05efc0ead8787c76a012382ef675b03.tar.bz2 llvm-a5057d02c05efc0ead8787c76a012382ef675b03.tar.xz |
LPPassManager : Add initialization and finalizatino hooks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34968 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/LoopPass.h')
-rw-r--r-- | include/llvm/Analysis/LoopPass.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h index cf5611beb5..4f449952d9 100644 --- a/include/llvm/Analysis/LoopPass.h +++ b/include/llvm/Analysis/LoopPass.h @@ -36,6 +36,15 @@ class LoopPass : public Pass { return false; } + // Initialization and finalization hooks. + virtual bool doInitialization(Loop *L, LPPassManager &LPM) { + return false; + } + + // Finalization hook does not supply Loop because at this time + // loop nest is completely different. + virtual bool doFinalization() { return false; } + /// Assign pass manager to manager this pass virtual void assignPassManager(PMStack &PMS, PassManagerType PMT = PMT_LoopPassManager); |