eliminate the add and remove methods, clients must use insert and erase directly.
[oota-llvm.git] / include / llvm / CodeGen / ValueSet.h
1 /* Title:   ValueSet.h   -*- C++ -*-
2    Author:  Ruchira Sasanka
3    Date:    Jun 30, 01
4    Purpose: Contains a mathematical set of Values. LiveVarSet is derived from
5             this. Contains both class and method definitions.
6 */
7
8 #ifndef VALUE_SET_H
9 #define VALUE_SET_H
10
11 class Value;
12 #include <set>
13
14 //------------------- Class Definition for ValueSet --------------------------
15
16 void printValue( const Value *v);  // func to print a Value 
17
18 struct ValueSet : public std::set<const Value*> {
19   bool setUnion( const ValueSet *const set1);     // for performing set union
20   void setSubtract( const ValueSet *const set1);  // for performing set diff
21  
22   void setDifference( const ValueSet *const set1, const ValueSet *const set2); 
23  
24   void printSet() const;                // for printing a live variable set
25 };
26
27 #endif