start of new file
[IRC.git] / Robust / src / IR / Flat / FlatPrefetchNode.java
index c89bb90b189b8f487d56320844e6a1344008df67..4baaf6adfa4a288eb2f0198e95b858e61717ed7a 100644 (file)
@@ -3,14 +3,25 @@ import Analysis.Prefetch.*;
 import java.util.*;
 
 public class FlatPrefetchNode extends FlatNode {
+    public Integer siteid;
        HashSet<PrefetchPair> hspp;
 
        public FlatPrefetchNode() {
                hspp = new HashSet<PrefetchPair>();
+        siteid = new Integer(1);
        }
 
        public String toString() {
-               return "prefetchnode";
+           String st="prefetch(";
+           boolean first=true;
+           for(Iterator<PrefetchPair> it=hspp.iterator();it.hasNext();) {
+               PrefetchPair pp=it.next();
+               if (!first)
+                   st+=", ";
+               first=false;
+               st+=pp;
+           }
+           return st+")";
        }
 
        public int kind() {