diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-05 01:43:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-05 01:43:49 +0000 |
commit | 0665a5f1f5716a69982f4bcd654e5ace975d0c0a (patch) | |
tree | 67856963d43737337cb4c9c2d7940989d9e16341 /include/llvm/CodeGen | |
parent | f39f379f9ec2e2908c89fdc809c9665c7484edb1 (diff) | |
download | external_llvm-0665a5f1f5716a69982f4bcd654e5ace975d0c0a.zip external_llvm-0665a5f1f5716a69982f4bcd654e5ace975d0c0a.tar.gz external_llvm-0665a5f1f5716a69982f4bcd654e5ace975d0c0a.tar.bz2 |
* 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
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/ValueSet.h | 13 |
1 files changed, 10 insertions, 3 deletions
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 <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) {} +}; +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<const Value*> { bool setUnion( const ValueSet *const set1); // for performing set union |