diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-11 00:22:30 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-11 00:22:30 +0000 |
commit | 10f2d13d580da348ba9769864f02d0d5a862c1e0 (patch) | |
tree | d2bc48620d1f25d724e0b2b486975e622f4f93f1 /lib/Analysis/LazyValueInfo.cpp | |
parent | b14b88a40ab12996c2982c4bc10fd35bb9a371d4 (diff) |
Stub out a new lazy value info pass, which will eventually
vend value constraint information to the optimizer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86767 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LazyValueInfo.cpp')
-rw-r--r-- | lib/Analysis/LazyValueInfo.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/Analysis/LazyValueInfo.cpp b/lib/Analysis/LazyValueInfo.cpp new file mode 100644 index 0000000000..cfedc20448 --- /dev/null +++ b/lib/Analysis/LazyValueInfo.cpp @@ -0,0 +1,31 @@ +//===- LazyValueInfo.cpp - Value constraint analysis ----------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file defines the interface for lazy computation of value constraint +// information. +// +//===----------------------------------------------------------------------===// + +#include "llvm/Analysis/LazyValueInfo.h" +using namespace llvm; + +char LazyValueInfo::ID = 0; +static RegisterPass<LazyValueInfo> +X("lazy-value-info", "Lazy Value Information Analysis", false, true); + +namespace llvm { + FunctionPass *createLazyValueInfoPass() { return new LazyValueInfo(); } +} + +LazyValueInfo::LazyValueInfo() : FunctionPass(&ID) { +} + +void LazyValueInfo::releaseMemory() { + +} |