mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
387092e09c
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1686 91177308-0d34-0410-b5e6-96231b3b80d8
28 lines
820 B
C++
28 lines
820 B
C++
/* Title: ValueSet.h -*- C++ -*-
|
|
Author: Ruchira Sasanka
|
|
Date: Jun 30, 01
|
|
Purpose: Contains a mathematical set of Values. LiveVarSet is derived from
|
|
this. Contains both class and method definitions.
|
|
*/
|
|
|
|
#ifndef VALUE_SET_H
|
|
#define VALUE_SET_H
|
|
|
|
class Value;
|
|
#include <set>
|
|
|
|
//------------------- Class Definition for ValueSet --------------------------
|
|
|
|
void printValue( const Value *v); // func to print a Value
|
|
|
|
struct ValueSet : public std::set<const Value*> {
|
|
bool setUnion( const ValueSet *const set1); // for performing set union
|
|
void setSubtract( const ValueSet *const set1); // for performing set diff
|
|
|
|
void setDifference( const ValueSet *const set1, const ValueSet *const set2);
|
|
|
|
void printSet() const; // for printing a live variable set
|
|
};
|
|
|
|
#endif
|