1 package Analysis.Prefetch;
6 public class PrefetchPair {
11 public PrefetchPair() {
14 public PrefetchPair(TempDescriptor td) {
18 public PrefetchPair(TempDescriptor td, int index) {
20 fd = new FieldDescriptor[index];
24 public TempDescriptor getTemp() {
28 public FieldDescriptor getField(int index) {
32 public int getIndex() {
36 public int hashCode() {
37 int hashcode = td.hashCode();
38 for(int i=0; i<arryindex; i++) {
39 hashcode = hashcode ^ fd[i].hashCode();
44 public String toString() {
46 return"<"+getTemp()+">";
49 public boolean equals(Object o) {
50 if(o instanceof PrefetchPair) {
51 PrefetchPair pp = (PrefetchPair) o;
54 for(int i=0; i< arryindex; i++) {
55 if(!fd[i].equals(pp.fd[i]))