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 | 741c94c719981551486bb06a48d3c2c9158fa324 (patch) | |
| tree | bdd3048d8c3922c0711362e13ee4050bea9013f3 /llvm/lib/Analysis | |
| parent | 3a2ae908fe89355afef66aea67f0322a59eddc38 (diff) | |
| download | bcm5719-llvm-741c94c719981551486bb06a48d3c2c9158fa324.tar.gz bcm5719-llvm-741c94c719981551486bb06a48d3c2c9158fa324.zip | |
Stub out a new lazy value info pass, which will eventually
vend value constraint information to the optimizer.
llvm-svn: 86767
Diffstat (limited to 'llvm/lib/Analysis')
| -rw-r--r-- | llvm/lib/Analysis/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | llvm/lib/Analysis/LazyValueInfo.cpp | 31 |
2 files changed, 32 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/CMakeLists.txt b/llvm/lib/Analysis/CMakeLists.txt index 3f8356caf0a..0a83c3db89d 100644 --- a/llvm/lib/Analysis/CMakeLists.txt +++ b/llvm/lib/Analysis/CMakeLists.txt @@ -18,6 +18,7 @@ add_llvm_library(LLVMAnalysis InstructionSimplify.cpp Interval.cpp IntervalPartition.cpp + LazyValueInfo.cpp LibCallAliasAnalysis.cpp LibCallSemantics.cpp LiveValues.cpp diff --git a/llvm/lib/Analysis/LazyValueInfo.cpp b/llvm/lib/Analysis/LazyValueInfo.cpp new file mode 100644 index 00000000000..cfedc20448b --- /dev/null +++ b/llvm/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() { + +} |

