summaryrefslogtreecommitdiff
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-02-05 01:43:49 +0000
committerChris Lattner <sabre@nondot.org>2002-02-05 01:43:49 +0000
commit0665a5f1f5716a69982f4bcd654e5ace975d0c0a (patch)
tree67856963d43737337cb4c9c2d7940989d9e16341 /include/llvm
parentf39f379f9ec2e2908c89fdc809c9665c7484edb1 (diff)
downloadllvm-0665a5f1f5716a69982f4bcd654e5ace975d0c0a.tar.gz
llvm-0665a5f1f5716a69982f4bcd654e5ace975d0c0a.tar.bz2
llvm-0665a5f1f5716a69982f4bcd654e5ace975d0c0a.tar.xz
* 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')
-rw-r--r--include/llvm/Analysis/LiveVar/LiveVarSet.h2
-rw-r--r--include/llvm/Analysis/LiveVar/ValueSet.h13
-rw-r--r--include/llvm/CodeGen/ValueSet.h13
3 files changed, 21 insertions, 7 deletions
diff --git a/include/llvm/Analysis/LiveVar/LiveVarSet.h b/include/llvm/Analysis/LiveVar/LiveVarSet.h
index 8a338218cf..2174be26fb 100644
--- a/include/llvm/Analysis/LiveVar/LiveVarSet.h
+++ b/include/llvm/Analysis/LiveVar/LiveVarSet.h
@@ -16,7 +16,7 @@ struct LiveVarSet : public ValueSet {
// This function applies a machine instr to a live var set (accepts OutSet)
// and makes necessary changes to it (produces InSet).
//
- void applyTranferFuncForMInst(const MachineInstr *const MInst);
+ void applyTranferFuncForMInst(const MachineInstr *MInst);
};
diff --git a/include/llvm/Analysis/LiveVar/ValueSet.h b/include/llvm/Analysis/LiveVar/ValueSet.h
index 055eef332f..7196284964 100644
--- a/include/llvm/Analysis/LiveVar/ValueSet.h
+++ b/include/llvm/Analysis/LiveVar/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
diff --git a/include/llvm/CodeGen/ValueSet.h b/include/llvm/CodeGen/ValueSet.h
index 055eef332f..7196284964 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