aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-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 8a33821..2174be2 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 055eef3..7196284 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 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