/frameworks/libs/binary_translation/backend/x86_64/ |
D | rename_vregs_local_test.cc | 52 auto insn_it = bb->insn_list().begin(); in TEST() local 54 MachineInsn* insn = *insn_it; in TEST() 57 insn_it++; in TEST() 58 insn = *insn_it; in TEST() 86 auto insn_it = bb->insn_list().begin(); in TEST() local 88 MachineInsn* insn = *insn_it; in TEST() 92 insn_it++; in TEST() 93 insn = *insn_it; in TEST() 121 auto insn_it = bb->insn_list().begin(); in TEST() local 123 MachineInsn* insn = *insn_it; in TEST() [all …]
|
D | local_guest_context_optimizer.cc | 41 void ReplaceGetAndUpdateMap(const MachineInsnList::iterator insn_it); 42 void ReplacePutAndUpdateMap(MachineInsnList& insn_list, const MachineInsnList::iterator insn_it); 51 for (auto insn_it = bb->insn_list().begin(); insn_it != bb->insn_list().end(); insn_it++) { in RemoveLocalGuestContextAccesses() local 52 auto* insn = AsMachineInsnX86_64(*insn_it); in RemoveLocalGuestContextAccesses() 54 ReplaceGetAndUpdateMap(insn_it); in RemoveLocalGuestContextAccesses() 56 ReplacePutAndUpdateMap(bb->insn_list(), insn_it); in RemoveLocalGuestContextAccesses() 62 void LocalGuestContextOptimizer::ReplaceGetAndUpdateMap(const MachineInsnList::iterator insn_it) { in ReplaceGetAndUpdateMap() argument 63 auto* insn = AsMachineInsnX86_64(*insn_it); in ReplaceGetAndUpdateMap() 75 *insn_it = machine_ir_->NewInsn<PseudoCopy>(dst, mem_reg_map_[disp].value().reg, copy_size); in ReplaceGetAndUpdateMap() 79 const MachineInsnList::iterator insn_it) { in ReplacePutAndUpdateMap() argument [all …]
|
D | loop_guest_context_optimizer_test.cc | 47 auto insn_it = bb->insn_list().begin(); in TEST() local 49 ReplaceGetAndUpdateMap(&machine_ir, insn_it, mem_reg_map); in TEST() 72 auto insn_it = bb->insn_list().begin(); in TEST() local 74 ReplacePutAndUpdateMap(&machine_ir, insn_it, mem_reg_map); in TEST() 99 auto insn_it = bb->insn_list().begin(); in TEST() local 101 ReplaceGetAndUpdateMap(&machine_ir, insn_it, mem_reg_map); in TEST() 102 ReplacePutAndUpdateMap(&machine_ir, std::next(insn_it), mem_reg_map); in TEST() 131 auto insn_it = bb->insn_list().begin(); in TEST() local 133 ReplaceGetAndUpdateMap(&machine_ir, insn_it, mem_reg_map); in TEST() 159 auto insn_it = bb->insn_list().begin(); in TEST() local [all …]
|
D | machine_ir_opt.cc | 104 for (auto insn_it = bb->insn_list().rbegin(); insn_it != bb->insn_list().rend();) { in RemoveDeadCode() local 105 MachineInsn* insn = *insn_it++; in RemoveDeadCode() 109 insn_it = MachineInsnList::reverse_iterator(bb->insn_list().erase(insn_it.base())); in RemoveDeadCode() 182 MachineInsnList::reverse_iterator insn_it, in RemovePutIfDead() argument 185 auto* insn = AsMachineInsnX86_64(*insn_it); in RemovePutIfDead() 189 return ++insn_it; in RemovePutIfDead() 195 return ++insn_it; in RemovePutIfDead() 200 auto forward_it = --(insn_it.base()); in RemovePutIfDead() 219 for (auto insn_it = bb->insn_list().rbegin(); insn_it != bb->insn_list().rend();) { in RemoveRedundantPut() local 220 auto* insn = AsMachineInsnX86_64(*insn_it); in RemoveRedundantPut() [all …]
|
D | rename_vregs_local.cc | 52 MachineInsnList::const_iterator insn_it, in TryRenameRegOperand() argument 55 MachineInsn* insn = *insn_it; in TryRenameRegOperand() 72 insn_list.insert(insn_it, machine_ir->NewInsn<MovqRegReg>(new_reg, vreg_map.Get(reg))); in TryRenameRegOperand() 89 for (auto insn_it = insn_list.begin(); insn_it != insn_list.end(); ++insn_it) { in RenameInsnListRegs() local 90 MachineInsn* insn = *insn_it; in RenameInsnListRegs() 94 TryRenameRegOperand(i, vreg_map, insn_it, machine_ir, insn_list); in RenameInsnListRegs()
|
D | insn_folding.cc | 271 for (auto insn_it = insn_list.begin(); insn_it != insn_list.end();) { in FoldInsns() local 272 auto [is_folded, new_insn] = insn_folding.TryFoldInsn(*insn_it); in FoldInsns() 275 insn_it = insn_list.erase(insn_it); in FoldInsns() 277 insn_list.insert(insn_it, new_insn); in FoldInsns() 281 def_map.ProcessInsn(*insn_it); in FoldInsns() 282 ++insn_it; in FoldInsns() 292 auto insn_it = std::prev(bb->insn_list().end()); in FoldWriteFlags() local 293 if ((*insn_it)->opcode() != kMachineOpPseudoCondBranch) { in FoldWriteFlags() 297 auto* branch = static_cast<PseudoCondBranch*>(*insn_it); in FoldWriteFlags() 298 const auto* write_flags = *(--insn_it); in FoldWriteFlags() [all …]
|
D | loop_guest_context_optimizer.cc | 31 const MachineInsnList::iterator insn_it, in ReplaceGetAndUpdateMap() argument 33 auto* insn = AsMachineInsnX86_64(*insn_it); in ReplaceGetAndUpdateMap() 62 *insn_it = new_insn; in ReplaceGetAndUpdateMap() 66 const MachineInsnList::iterator insn_it, in ReplacePutAndUpdateMap() argument 68 auto* insn = AsMachineInsnX86_64(*insn_it); in ReplacePutAndUpdateMap() 100 *insn_it = new_insn; in ReplacePutAndUpdateMap() 256 for (auto insn_it = bb->insn_list().begin(); insn_it != bb->insn_list().end(); insn_it++) { in OptimizeLoop() local 257 auto insn = AsMachineInsnX86_64(*insn_it); in OptimizeLoop() 267 ReplaceGetAndUpdateMap(machine_ir, insn_it, mem_reg_map); in OptimizeLoop() 269 ReplacePutAndUpdateMap(machine_ir, insn_it, mem_reg_map); in OptimizeLoop()
|
D | insn_folding_test.cc | 65 auto insn_it = bb->insn_list().begin(); in TryRegRegInsnFolding() local 66 insn_it++; in TryRegRegInsnFolding() 67 const MachineInsn* insn = *insn_it; in TryRegRegInsnFolding() 112 auto insn_it = bb->insn_list().begin(); in TryMovInsnFolding() local 113 insn_it++; in TryMovInsnFolding() 114 const MachineInsn* insn = *insn_it; in TryMovInsnFolding() 207 auto insn_it = bb->insn_list().begin(); in TEST() local 208 insn_it++; in TEST() 209 const MachineInsn* insn = *insn_it; in TEST() 245 auto insn_it = bb->insn_list().begin(); in TEST() local [all …]
|
D | context_liveness_analyzer.cc | 60 for (auto insn_it = bb->insn_list().rbegin(); insn_it != bb->insn_list().rend(); insn_it++) { in VisitBasicBlock() local 61 auto* insn = AsMachineInsnX86_64(*insn_it); in VisitBasicBlock()
|
D | liveness_analyzer.cc | 65 for (auto insn_it = bb->insn_list().rbegin(); insn_it != bb->insn_list().rend(); ++insn_it) { in VisitBasicBlock() local 66 const MachineInsn* insn = *insn_it; in VisitBasicBlock()
|
D | machine_ir_test.cc | 45 auto insn_it = bb->insn_list().begin(); in TEST() local 46 std::advance(insn_it, 2); in TEST() 47 auto new_bb = machine_ir.SplitBasicBlock(bb, insn_it); in TEST() 81 auto insn_it = std::next(bb1->insn_list().begin()); in TEST() local 82 MachineBasicBlock* new_bb = machine_ir.SplitBasicBlock(bb1, insn_it); in TEST()
|
D | machine_ir_opt_test.cc | 55 auto insn_it = bb->insn_list().begin(); in TEST() local 56 MachineInsn* insn = *insn_it; in TEST() 85 auto insn_it = bb->insn_list().begin(); in TEST() local 86 MachineInsn* insn = *insn_it; in TEST() 113 auto insn_it = bb->insn_list().begin(); in TEST() local 114 MachineInsn* insn = *insn_it; in TEST() 143 auto insn_it = bb->insn_list().rbegin(); in TEST() local 144 insn_it++; in TEST() 145 MachineInsn* insn = *insn_it++; in TEST() 170 auto insn_it = bb->insn_list().begin(); in TEST() local [all …]
|
/frameworks/libs/binary_translation/backend/include/berberis/backend/x86_64/ |
D | loop_guest_context_optimizer.h | 43 const MachineInsnList::iterator insn_it, 46 const MachineInsnList::iterator insn_it,
|
D | machine_ir.h | 312 MachineInsnList::iterator insn_it) { in SplitBasicBlock() argument 316 new_bb->insn_list().begin(), bb->insn_list(), insn_it, bb->insn_list().end()); in SplitBasicBlock()
|
/frameworks/libs/binary_translation/backend/common/ |
D | reg_alloc.cc | 379 for (auto insn_it = bb->insn_list().begin(); insn_it != bb->insn_list().end(); ++insn_it) { in CollectLifetimes() local 380 lifetime_analysis.AddInsn(MachineInsnListPosition(&(bb->insn_list()), insn_it)); in CollectLifetimes()
|
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/ |
D | frontend.cc | 637 auto& [bb, insn_it] = insn_pos; in Finalize() 643 if (insn_it.has_value()) { in Finalize() 644 insn_it.value()++; in Finalize() 648 insn_it = bb->insn_list().begin(); in Finalize()
|