mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
LV info on machine instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
Author: Ruchira Sasanka
|
||||
Date: Jun 30, 01
|
||||
Purpose: Contains a mathematical set of Values. LiveVarSet is derived from
|
||||
this. Contains both class and method definitions
|
||||
this. Contains both class and method definitions.
|
||||
*/
|
||||
|
||||
#ifndef VALUE_SET_H
|
||||
@@ -20,14 +20,14 @@
|
||||
|
||||
//------------------------ Support functions ---------------------------------
|
||||
|
||||
struct hashFuncValue { // sturcture containing the hash function.
|
||||
struct hashFuncValue { // sturcture containing the hash func
|
||||
inline size_t operator () (const Value *const val) const
|
||||
{ return (size_t) val; }
|
||||
};
|
||||
|
||||
|
||||
|
||||
//------------------- Class Definition for ValueSet ----------------------------
|
||||
//------------------- Class Definition for ValueSet --------------------------
|
||||
|
||||
void printValue( const Value *const v); // func to print a Value
|
||||
|
||||
@@ -37,21 +37,21 @@ class ValueSet : public hash_set<const Value *, hashFuncValue >
|
||||
{
|
||||
|
||||
public:
|
||||
ValueSet(); // constructor
|
||||
ValueSet(); // constructor
|
||||
|
||||
inline void add(const Value *const val)
|
||||
{ assert( val ); insert(val);} // for adding a live variable to set
|
||||
{ assert( val ); insert(val);} // for adding a live variable to set
|
||||
|
||||
inline void remove(const Value *const val)
|
||||
{ assert( val ); erase(val); } // for removing a live variable from set
|
||||
{ assert( val ); erase(val); } // for removing a live var from set
|
||||
|
||||
bool setUnion( const ValueSet *const set1); // for performing two set unions
|
||||
void setSubtract( const ValueSet *const set1); // for performing set difference
|
||||
bool setUnion( const ValueSet *const set1); // for performing set union
|
||||
void setSubtract( const ValueSet *const set1); // for performing set diff
|
||||
|
||||
// for performing set difference
|
||||
|
||||
void setDifference( const ValueSet *const set1, const ValueSet *const set2);
|
||||
|
||||
void printSet() const; // for printing a live variable set
|
||||
void printSet() const; // for printing a live variable set
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user