2003-09-30 18:12:25 +00:00
|
|
|
//===-- llvm/CodeGen/ValueSet.h ---------------------------------*- C++ -*-===//
|
2003-10-20 20:19:47 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file was developed by the LLVM research group and is distributed under
|
|
|
|
// the University of Illinois Open Source License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2003-01-14 22:56:37 +00:00
|
|
|
//
|
2003-09-30 18:12:25 +00:00
|
|
|
// This header is OBSOLETE, do not use it for new code.
|
2003-01-14 22:56:37 +00:00
|
|
|
//
|
|
|
|
// FIXME: Eliminate this file.
|
2003-09-30 18:12:25 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2003-01-14 22:56:37 +00:00
|
|
|
|
2001-07-24 17:14:13 +00:00
|
|
|
#ifndef VALUE_SET_H
|
|
|
|
#define VALUE_SET_H
|
|
|
|
|
2002-02-04 16:33:18 +00:00
|
|
|
#include <set>
|
2002-02-05 01:43:49 +00:00
|
|
|
class Value;
|
|
|
|
|
|
|
|
// RAV - Used to print values in a form used by the register allocator.
|
|
|
|
//
|
|
|
|
struct RAV { // Register Allocator Value
|
2002-06-25 16:12:52 +00:00
|
|
|
const Value &V;
|
|
|
|
RAV(const Value *v) : V(*v) {}
|
|
|
|
RAV(const Value &v) : V(v) {}
|
2002-02-05 01:43:49 +00:00
|
|
|
};
|
2002-02-24 23:01:21 +00:00
|
|
|
std::ostream &operator<<(std::ostream &out, RAV Val);
|
2001-07-24 17:14:13 +00:00
|
|
|
|
2002-02-05 02:51:01 +00:00
|
|
|
typedef std::set<const Value*> ValueSet;
|
|
|
|
void printSet(const ValueSet &S);
|
2001-07-24 17:14:13 +00:00
|
|
|
|
|
|
|
#endif
|