Stub out a new lazy value info pass, which will eventually
[oota-llvm.git] / include / llvm / Analysis / LazyValueInfo.h
1 //===- LazyValueInfo.h - Value constraint analysis --------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file defines the interface for lazy computation of value constraint
11 // information.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_ANALYSIS_LIVEVALUES_H
16 #define LLVM_ANALYSIS_LIVEVALUES_H
17
18 #include "llvm/Pass.h"
19
20 namespace llvm {
21
22 /// LazyValueInfo - This pass computes, caches, and vends lazy value constraint
23 /// information.
24 class LazyValueInfo : public FunctionPass {
25 public:
26   static char ID;
27   LazyValueInfo();
28
29   virtual void getAnalysisUsage(AnalysisUsage &AU) const {
30     AU.setPreservesAll();
31   }
32   virtual void releaseMemory();
33   
34   virtual bool runOnFunction(Function &F) {
35     // Fully lazy.
36     return false;
37   }
38 };
39
40 }  // end namespace llvm
41
42 #endif
43