From 0665a5f1f5716a69982f4bcd654e5ace975d0c0a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 5 Feb 2002 01:43:49 +0000 Subject: * Code Cleanups * Introduce RAV to allow stream I/O instead of using printValue git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1710 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/CodeGen/ValueSet.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'include/llvm/CodeGen') diff --git a/include/llvm/CodeGen/ValueSet.h b/include/llvm/CodeGen/ValueSet.h index 055eef3..7196284 100644 --- a/include/llvm/CodeGen/ValueSet.h +++ b/include/llvm/CodeGen/ValueSet.h @@ -8,12 +8,19 @@ #ifndef VALUE_SET_H #define VALUE_SET_H -class Value; #include +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) {} +}; +ostream &operator<<(ostream &out, RAV Val); -//------------------- Class Definition for ValueSet -------------------------- -void printValue( const Value *v); // func to print a Value +//------------------- Class Definition for ValueSet -------------------------- struct ValueSet : public std::set { bool setUnion( const ValueSet *const set1); // for performing set union -- cgit v1.1