aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/LiveVar/ValueSet.h
blob: 88897bf3ad98f3e3729aef8f544fdc243dcabb8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef VALUE_SET_H
#define VALUE_SET_H

#include <set>
class Value;

// RAV - Used to print values in a form used by the register allocator.  
//
struct RAV {  // Register Allocator Value
  const Value &V;
  RAV(const Value *v) : V(*v) {}
  RAV(const Value &v) : V(v) {}
};
std::ostream &operator<<(std::ostream &out, RAV Val);


typedef std::set<const Value*> ValueSet;
void printSet(const ValueSet &S);

#endif