LazyValueInfo.h revision 10f2d13d580da348ba9769864f02d0d5a862c1e0
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
20namespace llvm {
21
22/// LazyValueInfo - This pass computes, caches, and vends lazy value constraint
23/// information.
24class LazyValueInfo : public FunctionPass {
25public:
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
44