Home
last modified time | relevance | path

Searched refs:SsaInsn (Results 1 – 21 of 21) sorted by relevance

/dalvik/dx/src/com/android/dx/ssa/
DDeadCodeRemover.java45 private final ArrayList<SsaInsn>[] useList;
76 HashSet<SsaInsn> deletedInsns = new HashSet<SsaInsn>(); in run()
88 SsaInsn insnS = ssaMeth.getDefinitionForRegister(regV); in run()
126 HashSet<SsaInsn> deletedInsns = new HashSet<SsaInsn>(); in pruneDeadInstructions()
138 SsaInsn insn = block.getInsns().get(i); in pruneDeadInstructions()
156 for (SsaInsn use : useList[result.getReg()]) { in pruneDeadInstructions()
183 for (SsaInsn use : useList[regV]) { in isCircularNoSideEffect()
196 for (SsaInsn use : useList[regV]) { in isCircularNoSideEffect()
215 private static boolean hasSideEffect(SsaInsn insn) { in hasSideEffect()
230 static private class NoSideEffectVisitor implements SsaInsn.Visitor {
DSsaMethod.java75 private SsaInsn[] definitionList;
78 private ArrayList<SsaInsn>[] useList;
81 private List<SsaInsn>[] unmodifiableUseList;
224 private static SsaInsn getGoto(SsaBasicBlock block) { in getGoto()
370 for (SsaInsn insn : block.getInsns()) { in mapRegisters()
385 public SsaInsn getDefinitionForRegister(int reg) { in getDefinitionForRegister()
394 definitionList = new SsaInsn[getRegCount()]; in getDefinitionForRegister()
396 forEachInsn(new SsaInsn.Visitor() { in getDefinitionForRegister()
431 forEachInsn(new SsaInsn.Visitor() { in buildUseList()
451 private void addToUses(SsaInsn insn) { in buildUseList()
[all …]
DEscapeAnalysis.java142 private SsaInsn getInsnForMove(SsaInsn moveInsn) { in getInsnForMove()
144 ArrayList<SsaInsn> predInsns = ssaMeth.getBlocks().get(pred).getInsns(); in getInsnForMove()
155 private SsaInsn getMoveForInsn(SsaInsn insn) { in getMoveForInsn()
157 ArrayList<SsaInsn> succInsns = ssaMeth.getBlocks().get(succ).getInsns(); in getMoveForInsn()
217 private void processInsn(SsaInsn insn) { in processInsn()
251 private EscapeSet processMoveResultPseudoInsn(SsaInsn insn) { in processMoveResultPseudoInsn()
253 SsaInsn prevSsaInsn = getInsnForMove(insn); in processMoveResultPseudoInsn()
331 List<SsaInsn> useList = ssaMeth.getUseListForRegister(def.getReg()); in processRegister()
334 for (SsaInsn use : useList) { in processRegister()
358 private void processPhiUse(SsaInsn use, EscapeSet escSet, in processPhiUse()
[all …]
DSsaRenamer.java278 private class BlockRenamer implements SsaInsn.Visitor{
295 private final HashSet<SsaInsn> movesToKeep;
301 private final HashMap<SsaInsn, SsaInsn> insnsToReplace;
314 movesToKeep = new HashSet<SsaInsn>(); in BlockRenamer()
315 insnsToReplace = new HashMap<SsaInsn, SsaInsn>(); in BlockRenamer()
380 ArrayList<SsaInsn> insns = block.getInsns(); in process()
384 SsaInsn insn = insns.get(i); in process()
385 SsaInsn replaceInsn; in process()
563 SsaInsn newInsn in visitMoveInsn()
564 = SsaInsn.makeFromRop( in visitMoveInsn()
[all …]
DSCCP.java59 private final ArrayList<SsaInsn> ssaWorklist;
65 private final ArrayList<SsaInsn> varyingWorklist;
67 private final ArrayList<SsaInsn> branchWorklist;
77 this.ssaWorklist = new ArrayList<SsaInsn>(); in SCCP()
78 this.varyingWorklist = new ArrayList<SsaInsn>(); in SCCP()
79 this.branchWorklist = new ArrayList<SsaInsn>(); in SCCP()
115 for (SsaInsn insn : ssaMeth.getUseListForRegister(reg)) { in addUsersToWorklist()
119 for (SsaInsn insn : ssaMeth.getUseListForRegister(reg)) { in addUsersToWorklist()
203 for (SsaInsn insn : block.getInsns()) { in simulateBlock()
217 for (SsaInsn insn : block.getInsns()) { in simulatePhiBlock()
[all …]
DSsaBasicBlock.java51 private final ArrayList<SsaInsn> insns;
118 this.insns = new ArrayList<SsaInsn>(); in SsaBasicBlock()
219 SsaInsn newInsn = SsaInsn.makeFromRop(insn, this); in addInsnToHead()
235 SsaInsn oldInsn = insns.get(insns.size() - 1); in replaceLastInsn()
236 SsaInsn newInsn = SsaInsn.makeFromRop(insn, this); in replaceLastInsn()
253 SsaInsn insn = insns.get(i); in forEachPhiInsn()
288 SsaInsn insn = insns.get(countPhiInsns); in getCountPhiInsns()
301 public ArrayList<SsaInsn> getInsns() { in getInsns()
308 public List<SsaInsn> getPhiInsns() { in getPhiInsns()
689 private void scheduleUseBeforeAssigned(List<SsaInsn> toSchedule) { in scheduleUseBeforeAssigned()
[all …]
DSsaInsn.java29 public abstract class SsaInsn implements ToHuman, Cloneable { class
43 protected SsaInsn(RegisterSpec result, SsaBasicBlock block) { in SsaInsn() method in SsaInsn
59 public static SsaInsn makeFromRop(Insn insn, SsaBasicBlock block) { in makeFromRop()
65 public SsaInsn clone() { in clone()
67 return (SsaInsn)super.clone(); in clone()
DConstCollector.java172 SsaInsn insn = ssaMeth.getDefinitionForRegister(i); in getConstsSortedByCountUse()
186 ArrayList<SsaInsn> predInsns; in getConstsSortedByCountUse()
281 for (SsaInsn use : ssaMeth.getUseListForRegister(origReg.getReg())) { in fixLocalAssignment()
303 SsaInsn newInsn in fixLocalAssignment()
304 = SsaInsn.makeFromRop( in fixLocalAssignment()
310 ArrayList<SsaInsn> insns = use.getBlock().getInsns(); in fixLocalAssignment()
334 final ArrayList<SsaInsn>[] useList = ssaMeth.getUseListCopy(); in updateConstUses()
337 SsaInsn insn = ssaMeth.getDefinitionForRegister(i); in updateConstUses()
391 for (SsaInsn use : useList[origReg.getReg()]) { in updateConstUses()
DMoveParamCombiner.java58 final HashSet<SsaInsn> deletedInsns = new HashSet(); in run()
60 ssaMeth.forEachInsn(new SsaInsn.Visitor() { in run()
127 List<SsaInsn> uses in run()
132 SsaInsn use = uses.get(i); in run()
DLocalVariableInfo.java49 private final HashMap<SsaInsn, RegisterSpec> insnAssignments;
67 new HashMap<SsaInsn, RegisterSpec>(/*hint here*/); in LocalVariableInfo()
186 public void addAssignment(SsaInsn insn, RegisterSpec spec) { in addAssignment()
207 public RegisterSpec getAssignment(SsaInsn insn) { in getAssignment()
DLocalVariableExtractor.java106 List<SsaInsn> insns = block.getInsns(); in processBlock()
121 SsaInsn lastInsn = insns.get(insnSz - 1); in processBlock()
141 SsaInsn insn = insns.get(i); in processBlock()
DPhiTypeResolver.java70 SsaInsn definsn = ssaMeth.getDefinitionForRegister(reg); in run()
94 List<SsaInsn> useList = ssaMeth.getUseListForRegister(reg); in run()
98 SsaInsn useInsn = useList.get(i); in run()
DLiteralOpUpgrader.java84 ssaMeth.forEachInsn(new SsaInsn.Visitor() { in run()
164 ArrayList<SsaInsn> predInsns = in tryReplacingWithConstant()
203 List<SsaInsn> insns = insn.getBlock().getInsns(); in replacePlainInsn()
DSsaConverter.java270 ArrayList<SsaInsn> insns = block.getInsns(); in needsNewSuccessor()
271 SsaInsn lastInsn = insns.get(insns.size() - 1); in needsNewSuccessor()
330 for (SsaInsn insn : b.getInsns()) { in placePhiFunctions()
DPhiInsn.java36 public final class PhiInsn extends SsaInsn {
326 public void accept(SsaInsn.Visitor v) { in accept()
DNormalSsaInsn.java29 public final class NormalSsaInsn extends SsaInsn implements Cloneable {
/dalvik/dx/src/com/android/dx/ssa/back/
DRegisterAllocator.java28 import com.android.dx.ssa.SsaInsn;
80 SsaInsn definition = ssaMeth.getDefinitionForRegister(reg); in getCategoryForSsaReg()
98 SsaInsn definition = ssaMeth.getDefinitionForRegister(reg); in getDefinitionSpecForSsaReg()
111 SsaInsn defInsn = ssaMeth.getDefinitionForRegister(reg); in isDefinitionMoveParam()
133 protected final RegisterSpec insertMoveBefore(SsaInsn insn, in insertMoveBefore()
136 ArrayList<SsaInsn> insns = block.getInsns(); in insertMoveBefore()
162 SsaInsn toAdd = SsaInsn.makeFromRop( in insertMoveBefore()
DLivenessAnalyzer.java23 import com.android.dx.ssa.SsaInsn;
154 List<SsaInsn> useList = ssaMeth.getUseListForRegister(regV); in run()
156 for (SsaInsn insn : useList) { in run()
202 ArrayList<SsaInsn> insns; in liveOutAtBlock()
235 SsaInsn statement = blockN.getInsns().get(statementIndex); in liveOutAtStatement()
262 List<SsaInsn> phis = b.getPhiInsns(); in coInterferePhis()
272 SsaInsn first = phis.get(i); in coInterferePhis()
273 SsaInsn second = phis.get(j); in coInterferePhis()
DSsaToRop.java31 import com.android.dx.ssa.SsaInsn;
144 ArrayList<SsaInsn> insns = b.getInsns(); in removeEmptyGotos()
284 ArrayList<SsaInsn> insns = b.getInsns(); in verifyValidExitPredecessor()
285 SsaInsn lastInsn = insns.get(insns.size() - 1); in verifyValidExitPredecessor()
340 private InsnList convertInsns(ArrayList<SsaInsn> ssaInsns) { in convertInsns()
DFirstFitLocalCombiningAllocator.java33 import com.android.dx.ssa.SsaInsn;
265 SsaInsn defInsn = ssaMeth.getDefinitionForRegister(ssaReg); in getParameterIndexForReg()
548 ArrayList<SsaInsn> insnList = predBlock.getInsns(); in handleCheckCastResults()
554 SsaInsn checkCastInsn = insnList.get(insnList.size() - 1); in handleCheckCastResults()
699 ssaMeth.forEachInsn(new SsaInsn.Visitor() { in analyzeInstructions()
731 private void processInsn(SsaInsn insn) { in analyzeInstructions()
1158 SsaInsn def = ssaMeth.getDefinitionForRegister(source.getReg()); in processPhiInsn()
/dalvik/dx/src/com/android/dx/command/dump/
DSsaDumper.java29 import com.android.dx.ssa.SsaInsn;
144 for (SsaInsn insn : block.getInsns()) { in endParsingMember()