diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-30 20:27:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-30 20:27:15 +0000 |
commit | dcee11cd0a8a52fe000ccf8d122c593877093d60 (patch) | |
tree | f6bfa87a0e121a33e87d4cb05d03dfb4ebb46184 /include | |
parent | c619fa4ae5e548ecf59507f4c52ab4d7fb460ba2 (diff) | |
download | external_llvm-dcee11cd0a8a52fe000ccf8d122c593877093d60.zip external_llvm-dcee11cd0a8a52fe000ccf8d122c593877093d60.tar.gz external_llvm-dcee11cd0a8a52fe000ccf8d122c593877093d60.tar.bz2 |
Initial version of ValueNumbering interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3538 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/ValueNumbering.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ValueNumbering.h b/include/llvm/Analysis/ValueNumbering.h new file mode 100644 index 0000000..9135bc9 --- /dev/null +++ b/include/llvm/Analysis/ValueNumbering.h @@ -0,0 +1,30 @@ +//===- llvm/Analysis/ValueNumbering.h - Value #'ing Interface ---*- C++ -*-===// +// +// This file defines the abstract ValueNumbering interface, which is used as the +// common interface used by all clients of value numbering information, and +// implemented by all value numbering implementations. +// +// Implementations of this interface must implement the various virtual methods, +// which automatically provides functionality for the entire suite of client +// APIs. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_ANALYSIS_VALUE_NUMBERING_H +#define LLVM_ANALYSIS_VALUE_NUMBERING_H + +#include <vector> +class Value; + +struct ValueNumbering { + + /// getEqualNumberNodes - Return nodes with the same value number as the + /// specified Value. This fills in the argument vector with any equal values. + /// + virtual void getEqualNumberNodes(Value *V1, + std::vector<Value*> &RetVals) const = 0; + + virtual ~ValueNumbering(); // We want to be subclassed +}; + +#endif |