bug fixes
[IRC.git] / Robust / src / IR / Flat / FlatPrefetchNode.java
1 package IR.Flat;
2 import Analysis.Prefetch.*;
3 import java.util.*;
4
5 public class FlatPrefetchNode extends FlatNode {
6         HashSet<PrefetchPair> hspp;
7
8         public FlatPrefetchNode() {
9                 hspp = new HashSet<PrefetchPair>();
10         }
11
12         public String toString() {
13                 return "prefetchnode";
14         }
15
16         public int kind() {
17                 return FKind.FlatPrefetchNode;
18         }
19
20         public void insPrefetchPair(PrefetchPair pp) {
21                 hspp.add(pp);
22         }
23
24         public void insAllpp(HashSet<PrefetchPair> hspp) {
25                 this.hspp.addAll(hspp);
26         }
27
28         public HashSet<PrefetchPair> getPrefetchPairs() {
29                 return hspp;
30         }
31
32         public int getNumPairs() {
33                 return hspp.size();
34         }
35 }