2003-09-30 20:12:25 +02:00
|
|
|
//===-- llvm/CodeGen/ValueSet.h ---------------------------------*- C++ -*-===//
|
2005-04-21 22:39:54 +02:00
|
|
|
//
|
2003-10-20 22:19:47 +02: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.
|
2005-04-21 22:39:54 +02:00
|
|
|
//
|
2003-10-20 22:19:47 +02:00
|
|
|
//===----------------------------------------------------------------------===//
|
2003-01-14 23:56:37 +01:00
|
|
|
//
|
2003-09-30 20:12:25 +02:00
|
|
|
// This header is OBSOLETE, do not use it for new code.
|
2003-01-14 23:56:37 +01:00
|
|
|
//
|
|
|
|
// FIXME: Eliminate this file.
|
2003-09-30 20:12:25 +02:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2003-01-14 23:56:37 +01:00
|
|
|
|
2001-07-24 19:14:13 +02:00
|
|
|
#ifndef VALUE_SET_H
|
|
|
|
#define VALUE_SET_H
|
|
|
|
|
2002-02-04 17:33:18 +01:00
|
|
|
#include <set>
|
2003-11-11 23:41:34 +01:00
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
2002-02-05 02:43:49 +01:00
|
|
|
class Value;
|
|
|
|
|
2005-04-21 22:39:54 +02:00
|
|
|
// RAV - Used to print values in a form used by the register allocator.
|
2002-02-05 02:43:49 +01:00
|
|
|
//
|
|
|
|
struct RAV { // Register Allocator Value
|
2002-06-25 18:12:52 +02:00
|
|
|
const Value &V;
|
|
|
|
RAV(const Value *v) : V(*v) {}
|
|
|
|
RAV(const Value &v) : V(v) {}
|
2002-02-05 02:43:49 +01:00
|
|
|
};
|
2002-02-25 00:01:21 +01:00
|
|
|
std::ostream &operator<<(std::ostream &out, RAV Val);
|
2001-07-24 19:14:13 +02:00
|
|
|
|
2002-02-05 03:51:01 +01:00
|
|
|
typedef std::set<const Value*> ValueSet;
|
|
|
|
void printSet(const ValueSet &S);
|
2001-07-24 19:14:13 +02:00
|
|
|
|
2003-11-11 23:41:34 +01:00
|
|
|
} // End llvm namespace
|
|
|
|
|
2001-07-24 19:14:13 +02:00
|
|
|
#endif
|