1 //===- llvm/Analysis/ValueNumbering.h - Value #'ing Interface ---*- C++ -*-===//
3 // This file defines the abstract ValueNumbering interface, which is used as the
4 // common interface used by all clients of value numbering information, and
5 // implemented by all value numbering implementations.
7 // Implementations of this interface must implement the various virtual methods,
8 // which automatically provides functionality for the entire suite of client
11 //===----------------------------------------------------------------------===//
13 #ifndef LLVM_ANALYSIS_VALUE_NUMBERING_H
14 #define LLVM_ANALYSIS_VALUE_NUMBERING_H
19 struct ValueNumbering {
21 /// getEqualNumberNodes - Return nodes with the same value number as the
22 /// specified Value. This fills in the argument vector with any equal values.
24 virtual void getEqualNumberNodes(Value *V1,
25 std::vector<Value*> &RetVals) const = 0;
27 virtual ~ValueNumbering(); // We want to be subclassed