From acbbae88b551c15b1fa73edd6bf46185c8c28e1e Mon Sep 17 00:00:00 2001 From: adash Date: Wed, 17 Oct 2007 03:05:51 +0000 Subject: [PATCH] Remove unnecessarily checked files --- Robust/src/Analysis/Prefetch/:w | 193 ------------------ .../Analysis/Prefetch/PrefetchAnalysis.class | Bin 5318 -> 0 bytes .../Prefetch/PrefetchAnalysis.java.old | 112 ---------- .../src/Analysis/Prefetch/PrefetchPair.class | Bin 805 -> 0 bytes 4 files changed, 305 deletions(-) delete mode 100644 Robust/src/Analysis/Prefetch/:w delete mode 100644 Robust/src/Analysis/Prefetch/PrefetchAnalysis.class delete mode 100644 Robust/src/Analysis/Prefetch/PrefetchAnalysis.java.old delete mode 100644 Robust/src/Analysis/Prefetch/PrefetchPair.class diff --git a/Robust/src/Analysis/Prefetch/:w b/Robust/src/Analysis/Prefetch/:w deleted file mode 100644 index bdd1c501..00000000 --- a/Robust/src/Analysis/Prefetch/:w +++ /dev/null @@ -1,193 +0,0 @@ -package Analysis.Prefetch; - -import java.util.*; -import Analysis.CallGraph.CallGraph; -import Analysis.Prefetch.PrefetchPair; -import IR.SymbolTable; -import IR.State; -import IR.TypeUtil; -import IR.MethodDescriptor; -import IR.Flat.*; -import IR.ClassDescriptor; - -public class PrefetchAnalysis { - State state; - CallGraph callgraph; - TypeUtil typeutil; - - public PrefetchAnalysis(State state, CallGraph callgraph, TypeUtil typeutil) { - this.typeutil=typeutil; - this.state=state; - this.callgraph=callgraph; - DoPrefetch(); - } - - private void DoPrefetch() { - Iterator classit=state.getClassSymbolTable().getDescriptorsIterator(); - while(classit.hasNext()) { - ClassDescriptor cn=(ClassDescriptor)classit.next(); - doMethodAnalysis(cn); - } - } - - private void doMethodAnalysis(ClassDescriptor cn) { - Iterator methodit=cn.getMethods(); - while(methodit.hasNext()) { - /* Classify parameters */ - MethodDescriptor md=(MethodDescriptor)methodit.next(); - FlatMethod fm=state.getMethodFlat(md); - doFlatNodeAnalysis(fm); - //tovisit = fm.getNodeSet(); - //visited = null; - //while (!tovisit.isEmpty()) { - // FlatNode fn = tovisit.iterator().next(); - // tovisit.remove(fn); - // doFlatNodeAnalysis(fn); - //} - } - } - - private void doFlatNodeAnalysis(FlatMethod fm) { - HashSet tovisit = new HashSet(); - //Set tovisit; - Hashtable prefetch_hash = new Hashtable(); - while(!tovisit.isEmpty()) { - FlatNode fn = (FlatNode)tovisit.iterator().next(); - tovisit.remove(fn); - System.out.println("DEBUG -> kind = " + fn.kind()); - FlatElementNode fen = (FlatElementNode)fn; - switch(fn.kind()) { - //Take care of all Flat nodes and generate prefetches and analysis for them - case FKind.FlatAtomicEnterNode: - break; - case FKind.FlatAtomicExitNode: - break; - case FKind.FlatGlobalConvNode: - break; - case FKind.FlatTagDeclaration: - break; - case FKind.FlatCall: - break; - case FKind.FlatFieldNode: - FlatFieldNode ffn = (FlatFieldNode) fn; - System.out.println("DEBUG -> is an object"); - System.out.println(ffn.toString()); - break; - case FKind.FlatElementNode: - //Set pp = new Set(); - if (fen.getDst().getType().isPtr()) { - System.out.println("DEBUG -> is a pointer"); - System.out.println(fen.toString()); - PrefetchPair pp = new PrefetchPair(fen.getDst(),(float)1.0); - prefetch_hash.put(fn, pp); - } - break; - case FKind.FlatSetElementNode: - break; - case FKind.FlatSetFieldNode: - break; - case FKind.FlatNew: - break; - case FKind.FlatOpNode: - break; - case FKind.FlatCastNode: - break; - case FKind.FlatLiteralNode: - break; - case FKind.FlatReturnNode: - break; - case FKind.FlatNop: - System.out.println("/* nop */"); - break; - case FKind.FlatCheckNode: - break; - case FKind.FlatFlagActionNode: - break; - } - } - } - - private void doAnalysis() { - Iterator classit=state.getClassSymbolTable().getDescriptorsIterator(); - while(classit.hasNext()) { - ClassDescriptor cn=(ClassDescriptor)classit.next(); - Iterator methodit=cn.getMethods(); - while(methodit.hasNext()) { - /* Classify parameters */ - MethodDescriptor md=(MethodDescriptor)methodit.next(); - FlatMethod fm=state.getMethodFlat(md); - System.out.println("DEBUG -> "); - printMethod(fm); - } - } - } - - private void printMethod(FlatMethod fm) { - System.out.println(fm.getMethod()+" {"); - HashSet tovisit=new HashSet(); - HashSet visited=new HashSet(); - int labelindex=0; - Hashtable nodetolabel=new Hashtable(); - tovisit.add(fm); - FlatNode current_node=null; - //Assign labels 1st - //Node needs a label if it is - while(!tovisit.isEmpty()) { - FlatNode fn=(FlatNode)tovisit.iterator().next(); - tovisit.remove(fn); - visited.add(fn); - System.out.println("DEBUG -> " + fn.kind()); - - for(int i=0;i0) { - //1) Edge >1 of node - nodetolabel.put(nn,new Integer(labelindex++)); - } - if (!visited.contains(nn)&&!tovisit.contains(nn)) { - tovisit.add(nn); - } else { - //2) Join point - nodetolabel.put(nn,new Integer(labelindex++)); - } - } - } - //Do the actual printing - tovisit=new HashSet(); - visited=new HashSet(); - tovisit.add(fm); - while(current_node!=null||!tovisit.isEmpty()) { - if (current_node==null) { - current_node=(FlatNode)tovisit.iterator().next(); - tovisit.remove(current_node); - } - visited.add(current_node); - if (nodetolabel.containsKey(current_node)) - System.out.println("L"+nodetolabel.get(current_node)+":"); - if (current_node.numNext()==0) { - System.out.println(" "+current_node.toString()); - current_node=null; - } else if(current_node.numNext()==1) { - System.out.println(" "+current_node.toString()); - FlatNode nextnode=current_node.getNext(0); - if (visited.contains(nextnode)) { - System.out.println("goto L"+nodetolabel.get(nextnode)); - current_node=null; - } else - current_node=nextnode; - } else if (current_node.numNext()==2) { - /* Branch */ - System.out.println(" "+((FlatCondBranch)current_node).toString("L"+nodetolabel.get(current_node.getNext(1)))); - if (!visited.contains(current_node.getNext(1))) - tovisit.add(current_node.getNext(1)); - if (visited.contains(current_node.getNext(0))) { - System.out.println("goto L"+nodetolabel.get(current_node.getNext(0))); - current_node=null; - } else - current_node=current_node.getNext(0); - } else throw new Error(); - } - System.out.println("}"); - } - -} diff --git a/Robust/src/Analysis/Prefetch/PrefetchAnalysis.class b/Robust/src/Analysis/Prefetch/PrefetchAnalysis.class deleted file mode 100644 index e07068c6fbca249b098f4376191e18ce63388dc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eOdvwV)fN7H0UQY$B&Bw-{h-VY?M;vlf}^5Xw_$Ny-*x;M6Qh40SRi=m>L; z5$HkZm@mcBK~gtHW-Yu~J0#UgPUfn1a7EG}d;H*%F3jR-Hv2)YEtwL(q8;ldurL$L=Ri8t`E*pCC^U3?-wpDC62T&ckqN*%sb f7UL_W9bYR;@r}}fZ0) { - //1) Edge >1 of node - nodetolabel.put(nn,new Integer(labelindex++)); - } - if (!visited.contains(nn)&&!tovisit.contains(nn)) { - tovisit.add(nn); - } else { - //2) Join point - nodetolabel.put(nn,new Integer(labelindex++)); - } - } - } - //Do the actual printing - tovisit=new HashSet(); - visited=new HashSet(); - tovisit.add(fm); - while(current_node!=null||!tovisit.isEmpty()) { - if (current_node==null) { - current_node=(FlatNode)tovisit.iterator().next(); - tovisit.remove(current_node); - } - visited.add(current_node); - if (nodetolabel.containsKey(current_node)) - System.out.println("L"+nodetolabel.get(current_node)+":"); - if (current_node.numNext()==0) { - System.out.println(" "+current_node.toString()); - current_node=null; - } else if(current_node.numNext()==1) { - System.out.println(" "+current_node.toString()); - FlatNode nextnode=current_node.getNext(0); - if (visited.contains(nextnode)) { - System.out.println("goto L"+nodetolabel.get(nextnode)); - current_node=null; - } else - current_node=nextnode; - } else if (current_node.numNext()==2) { - //Branch - System.out.println(" "+((FlatCondBranch)current_node).toString("L"+nodetolabel.get(current_node.getNext(1)))); - if (!visited.contains(current_node.getNext(1))) - tovisit.add(current_node.getNext(1)); - if (visited.contains(current_node.getNext(0))) { - System.out.println("goto L"+nodetolabel.get(current_node.getNext(0))); - current_node=null; - } else - current_node=current_node.getNext(0); - } else throw new Error(); - } - System.out.println("}"); - } - -} diff --git a/Robust/src/Analysis/Prefetch/PrefetchPair.class b/Robust/src/Analysis/Prefetch/PrefetchPair.class deleted file mode 100644 index 7005f65add46353175cd29f30b94059cece36bd9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 805 zcmZ`%T~8BH5IuLhblYX2P^x@bzyj)a5jIBOAS8aIi3w36goMX!d#RUfx6SsJ#DArU zltdGMfIrH3Zd)Zl`mkqaXU@!-ncd%ie*6OP0=q6|u%3s9#|A16HeA?P&tcQpEtkP3 z#(SE>Gh=-RRR@89rJDjvhwndywK&q@iEMY@$zCH>UEN9dm_KK}G|Vd*H*e)KNxv;1 zY697Pl_-56knyXh0`}WZQwkIgRU$w1+jW_qMD>`FvOh_wX6l@l)Mf&K6~8)(DUj2h zW1Xs`#mUIKh%Tcrj*?b5igIfAxYJJ?vZjpa{81{;rEYvaid4F5*d9uF;9(X84@E2p zEZ*($rmy0rOu5~@hiyFfu#6Ss?J#uU;StILYp;_i{?b#u@Snne$4Cjx-L(B!zmN^h zOGVwTOnB2B|Nh|jcNx#Ym2UAz-S#H)QQ;S#;lGjL!##<>9Oj9_tW0au;~9t#`BtG7 zv{S(~#J3@Bk?6uAPLu2n=}Tk!OU6y>f}sc7SFnPuD`aj8i!3q9HnsCqo~5=hM;td; zr5)*ghxL_IegtB67%UNaVWJuB6}1et{1f)sHKvN$0i0lf+yMEaOMigryB(HUvC0|? GYkvWImY}f! -- 2.34.1