/frameworks/libs/binary_translation/backend/x86_64/ |
D | machine_ir_check.cc | 30 bool CheckBasicBlockInIR(const MachineBasicBlock* bb, const MachineIR& machine_ir) { in CheckBasicBlockInIR() argument 32 return Contains(bb_list, bb); in CheckBasicBlockInIR() 36 const MachineBasicBlock* bb) { in CheckNoDanglingEdgesOrBasicBlocks() argument 37 if (bb->out_edges().size() == 0 && bb->in_edges().size() == 0) { in CheckNoDanglingEdgesOrBasicBlocks() 44 for (auto* edge : bb->out_edges()) { in CheckNoDanglingEdgesOrBasicBlocks() 52 for (auto* edge : bb->in_edges()) { in CheckNoDanglingEdgesOrBasicBlocks() 63 bool CheckInOutEdgesLinksToBasicBlock(const MachineBasicBlock* bb) { in CheckInOutEdgesLinksToBasicBlock() argument 64 for (auto* edge : bb->in_edges()) { in CheckInOutEdgesLinksToBasicBlock() 65 if (edge->dst() != bb) { in CheckInOutEdgesLinksToBasicBlock() 69 for (auto* edge : bb->out_edges()) { in CheckInOutEdgesLinksToBasicBlock() [all …]
|
D | machine_ir_opt.cc | 96 for (auto* bb : machine_ir->bb_list()) { in RemoveDeadCode() local 99 for (auto vreg : bb->live_out()) { in RemoveDeadCode() 104 for (auto insn_it = bb->insn_list().rbegin(); insn_it != bb->insn_list().rend();) { in RemoveDeadCode() 109 insn_it = MachineInsnList::reverse_iterator(bb->insn_list().erase(insn_it.base())); in RemoveDeadCode() 120 void ChangeBranchTarget(MachineBasicBlock* bb, in ChangeBranchTarget() argument 123 CHECK_GT(bb->insn_list().size(), 0); in ChangeBranchTarget() 124 auto last_insn = bb->insn_list().back(); in ChangeBranchTarget() 165 for (auto bb : machine_ir->bb_list()) { in RemoveCriticalEdges() local 166 if (bb->in_edges().size() < 2) { in RemoveCriticalEdges() 169 for (size_t i = 0; i < bb->in_edges().size(); i++) { in RemoveCriticalEdges() [all …]
|
D | context_liveness_analyzer.cc | 32 auto* bb = worklist.back(); in Init() local 34 if (VisitBasicBlock(bb)) { in Init() 36 for (auto edge : bb->in_edges()) { in Init() 46 bool ContextLivenessAnalyzer::IsLiveIn(const MachineBasicBlock* bb, uint32_t offset) const { in IsLiveIn() argument 47 return context_live_in_[bb->id()].test(offset); in IsLiveIn() 50 bool ContextLivenessAnalyzer::VisitBasicBlock(const MachineBasicBlock* bb) { in VisitBasicBlock() argument 52 if (bb->out_edges().size() == 0) { in VisitBasicBlock() 55 for (auto* out_edge : bb->out_edges()) { in VisitBasicBlock() 60 for (auto insn_it = bb->insn_list().rbegin(); insn_it != bb->insn_list().rend(); insn_it++) { in VisitBasicBlock() 69 if (context_live_in_[bb->id()] != running_liveness) { in VisitBasicBlock() [all …]
|
D | liveness_analyzer_test.cc | 33 const MachineBasicBlock* bb, in ExpectNoLiveIns() argument 35 EXPECT_TRUE((!liveness->IsLiveIn(bb, not_live_in_vregs) && ... && true)); in ExpectNoLiveIns() 36 EXPECT_EQ(liveness->GetFirstLiveIn(bb), kInvalidMachineReg); in ExpectNoLiveIns() 41 const MachineBasicBlock* bb, in ExpectSingleLiveIn() argument 44 EXPECT_TRUE((!liveness->IsLiveIn(bb, not_live_in_vregs) && ... && true)); in ExpectSingleLiveIn() 45 EXPECT_TRUE(liveness->IsLiveIn(bb, vreg)); in ExpectSingleLiveIn() 46 EXPECT_EQ(liveness->GetFirstLiveIn(bb), vreg); in ExpectSingleLiveIn() 47 EXPECT_EQ(liveness->GetNextLiveIn(bb, vreg), kInvalidMachineReg); in ExpectSingleLiveIn() 51 const MachineBasicBlock* bb, in ExpectTwoLiveIns() argument 54 EXPECT_TRUE(liveness->IsLiveIn(bb, vreg1)); in ExpectTwoLiveIns() [all …]
|
D | rename_vregs_local_test.cc | 33 auto* bb = machine_ir.NewBasicBlock(); in TEST() local 40 builder.StartBasicBlock(bb); in TEST() 45 bb->live_out().push_back(vreg1); in TEST() 46 bb->live_out().push_back(vreg2); in TEST() 50 EXPECT_EQ(bb->insn_list().size(), 3UL); in TEST() 52 auto insn_it = bb->insn_list().begin(); in TEST() 66 auto* bb = machine_ir.NewBasicBlock(); in TEST() local 73 builder.StartBasicBlock(bb); in TEST() 78 bb->live_in().push_back(vreg2); in TEST() 80 bb->live_out().push_back(vreg1); in TEST() [all …]
|
D | insn_folding_test.cc | 39 auto* bb = machine_ir.NewBasicBlock(); in TryRegRegInsnFolding() local 47 builder.StartBasicBlock(bb); in TryRegRegInsnFolding() 56 bb->live_out().push_back(vreg2); in TryRegRegInsnFolding() 59 for (const auto* insn : bb->insn_list()) { in TryRegRegInsnFolding() 65 auto insn_it = bb->insn_list().begin(); in TryRegRegInsnFolding() 87 auto* bb = machine_ir.NewBasicBlock(); in TryMovInsnFolding() local 94 builder.StartBasicBlock(bb); in TryMovInsnFolding() 103 bb->live_out().push_back(vreg2); in TryMovInsnFolding() 106 for (const auto* insn : bb->insn_list()) { in TryMovInsnFolding() 112 auto insn_it = bb->insn_list().begin(); in TryMovInsnFolding() [all …]
|
D | local_guest_context_optimizer_test.cc | 38 auto bb = machine_ir.NewBasicBlock(); in TEST() local 39 builder.StartBasicBlock(bb); in TEST() 49 ASSERT_EQ(bb->insn_list().size(), 3UL); in TEST() 51 auto* store_insn = *bb->insn_list().begin(); in TEST() 58 auto* load_copy_insn = *std::next(bb->insn_list().begin()); in TEST() 70 auto bb = machine_ir.NewBasicBlock(); in TEST() local 71 builder.StartBasicBlock(bb); in TEST() 81 ASSERT_EQ(bb->insn_list().size(), 3UL); in TEST() 82 auto* load_insn = *bb->insn_list().begin(); in TEST() 88 auto* copy_insn = *std::next(bb->insn_list().begin()); in TEST() [all …]
|
D | liveness_analyzer.cc | 39 auto* bb = worklist.back(); in Run() local 41 if (VisitBasicBlock(bb)) { in Run() 43 for (auto edge : bb->in_edges()) { in Run() 54 bool LivenessAnalyzer::VisitBasicBlock(const MachineBasicBlock* bb) { in VisitBasicBlock() argument 60 for (auto edge : bb->out_edges()) { in VisitBasicBlock() 65 for (auto insn_it = bb->insn_list().rbegin(); insn_it != bb->insn_list().rend(); ++insn_it) { in VisitBasicBlock() 80 if (live_in_[bb->id()] != running_liveness) { in VisitBasicBlock() 81 live_in_[bb->id()] = running_liveness; in VisitBasicBlock()
|
D | rename_copy_uses_test.cc | 34 auto* bb = machine_ir.NewBasicBlock(); in TEST() local 42 builder.StartBasicBlock(bb); in TEST() 50 map.StartBasicBlock(bb); in TEST() 68 auto* bb = machine_ir.NewBasicBlock(); in TEST() local 76 builder.StartBasicBlock(bb); in TEST() 91 auto* bb = machine_ir.NewBasicBlock(); in TEST() local 100 builder.StartBasicBlock(bb); in TEST() 116 auto* bb = machine_ir.NewBasicBlock(); in TEST() local 124 builder.StartBasicBlock(bb); in TEST() 142 auto* bb = machine_ir.NewBasicBlock(); in TEST() local [all …]
|
D | machine_ir_analysis.cc | 44 bool PushBackIfNotInLoop(MachineBasicBlock* bb) { in PushBackIfNotInLoop() argument 45 if (is_bb_in_loop_[bb->id()]) { in PushBackIfNotInLoop() 48 loop_->push_back(bb); in PushBackIfNotInLoop() 49 is_bb_in_loop_[bb->id()] = true; in PushBackIfNotInLoop() 58 void PostOrderTraverseBBListRecursive(MachineBasicBlock* bb, in PostOrderTraverseBBListRecursive() argument 61 is_visited[bb->id()] = true; in PostOrderTraverseBBListRecursive() 62 for (auto* edge : bb->out_edges()) { in PostOrderTraverseBBListRecursive() 69 result.push_front(bb); in PostOrderTraverseBBListRecursive() 97 auto* bb = loop->at(bb_no); in CollectLoop() local 99 if (bb->in_edges().size() == 0) { in CollectLoop() [all …]
|
D | loop_guest_context_optimizer_test.cc | 41 auto bb = machine_ir.NewBasicBlock(); in TEST() local 42 builder.StartBasicBlock(bb); in TEST() 47 auto insn_it = bb->insn_list().begin(); in TEST() 52 EXPECT_EQ(bb->insn_list().size(), 2UL); in TEST() 53 auto* copy_insn = *bb->insn_list().begin(); in TEST() 66 auto bb = machine_ir.NewBasicBlock(); in TEST() local 67 builder.StartBasicBlock(bb); in TEST() 72 auto insn_it = bb->insn_list().begin(); in TEST() 77 EXPECT_EQ(bb->insn_list().size(), 2UL); in TEST() 78 auto* copy_insn = *bb->insn_list().begin(); in TEST() [all …]
|
D | loop_guest_context_optimizer.cc | 103 void GenerateGetInsns(MachineIR* ir, MachineBasicBlock* bb, const MemRegMap& mem_reg_map) { in GenerateGetInsns() argument 105 CHECK_EQ(bb->out_edges().size(), 1); in GenerateGetInsns() 107 auto insert_it = std::prev(bb->insn_list().end()); in GenerateGetInsns() 137 bb->insn_list().insert(insert_it, get_insn); in GenerateGetInsns() 141 void GeneratePutInsns(MachineIR* ir, MachineBasicBlock* bb, const MemRegMap& mem_reg_map) { in GeneratePutInsns() argument 143 CHECK_EQ(bb->in_edges().size(), 1); in GeneratePutInsns() 145 auto insert_it = bb->insn_list().begin(); in GeneratePutInsns() 172 bb->insn_list().insert(insert_it, put_insn); in GeneratePutInsns() 190 for (auto bb : *loop) { in GeneratePutsInPostloop() 191 for (auto* out_edge : bb->out_edges()) { in GeneratePutsInPostloop() [all …]
|
D | rename_vregs.cc | 27 for (auto* bb : machine_ir_->bb_list()) { in AssignNewVRegs() local 28 for (auto* insn : bb->insn_list()) { in AssignNewVRegs() 32 insn->SetRegAt(i, Get(reg, bb)); in AssignNewVRegs() 41 MachineReg VRegMap::Get(MachineReg reg, const MachineBasicBlock* bb) { in Get() argument 43 MachineReg& mapped_reg = map_.at(bb->id()).at(reg.GetVRegIndex()); in Get() 88 for (auto bb : machine_ir->bb_list()) { in RenameVRegs() local 89 for (auto edge : bb->out_edges()) { in RenameVRegs() 93 GenInterBasicBlockMove(machine_ir, &vreg_map, bb, succ_bb, vreg); in RenameVRegs()
|
D | machine_ir_opt_test.cc | 38 auto* bb = machine_ir.NewBasicBlock(); in TEST() local 44 builder.StartBasicBlock(bb); in TEST() 47 builder.Gen<PseudoBranch>(bb); in TEST() 49 bb->live_out().push_back(vreg1); in TEST() 53 EXPECT_EQ(bb->insn_list().size(), 2UL); in TEST() 55 auto insn_it = bb->insn_list().begin(); in TEST() 67 auto* bb = machine_ir.NewBasicBlock(); in TEST() local 74 builder.StartBasicBlock(bb); in TEST() 77 builder.Gen<PseudoBranch>(bb); in TEST() 79 bb->live_out().push_back(vreg1); in TEST() [all …]
|
D | rename_copy_uses.cc | 81 void RenameCopyUsesMap::StartBasicBlock(MachineBasicBlock* bb) { in StartBasicBlock() argument 82 bb_ = bb; in StartBasicBlock() 91 for (auto* bb : machine_ir->bb_list()) { in RenameCopyUses() local 92 map.StartBasicBlock(bb); in RenameCopyUses() 94 for (MachineInsn* insn : bb->insn_list()) { in RenameCopyUses()
|
D | machine_ir_test.cc | 35 auto bb = machine_ir.NewBasicBlock(); in TEST() local 36 builder.StartBasicBlock(bb); in TEST() 45 auto insn_it = bb->insn_list().begin(); in TEST() 47 auto new_bb = machine_ir.SplitBasicBlock(bb, insn_it); in TEST() 51 EXPECT_EQ(bb->insn_list().size(), static_cast<unsigned int>(3)); in TEST() 52 EXPECT_EQ(bb->insn_list().back()->opcode(), kMachineOpPseudoBranch); in TEST()
|
D | context_liveness_analyzer_test.cc | 37 const MachineBasicBlock* bb, in CheckBBLiveIn() argument 45 EXPECT_FALSE(analyzer->IsLiveIn(bb, offsetof(ProcessState, cpu.x[reg]))); in CheckBBLiveIn() 47 EXPECT_TRUE(analyzer->IsLiveIn(bb, offsetof(ProcessState, cpu.x[reg]))); in CheckBBLiveIn() 56 auto* bb = machine_ir.NewBasicBlock(); in TEST() local 60 builder.StartBasicBlock(bb); in TEST() 68 CheckBBLiveIn(&analyzer, bb, {0}); in TEST()
|
/frameworks/libs/binary_translation/backend/include/berberis/backend/x86_64/ |
D | liveness_analyzer.h | 37 bool IsLiveIn(const MachineBasicBlock* bb, MachineReg reg) const { in IsLiveIn() argument 38 return live_in_[bb->id()][reg]; in IsLiveIn() 44 MachineReg GetFirstLiveIn(const MachineBasicBlock* bb) const { in GetFirstLiveIn() argument 45 return GetNextLiveIn(bb, kInvalidMachineReg); in GetFirstLiveIn() 48 MachineReg GetNextLiveIn(const MachineBasicBlock* bb, MachineReg prev) const { in GetNextLiveIn() argument 56 if (IsLiveIn(bb, vreg)) { in GetNextLiveIn() 69 bool VisitBasicBlock(const MachineBasicBlock* bb);
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | TrafficDescriptor.java | 116 ByteBuffer bb = ByteBuffer.wrap(rawOsAppId); in OsAppId() local 118 mOsId = new UUID(bb.getLong(), bb.getLong()); in OsAppId() 120 int appIdLen = bb.get(); in OsAppId() 123 bb.get(appIdAndDifferentiator, 0, appIdLen); in OsAppId() 170 ByteBuffer bb = ByteBuffer.allocate(16 + 1 + osAppId.length); in getBytes() local 171 bb.putLong(mOsId.getMostSignificantBits()); in getBytes() 172 bb.putLong(mOsId.getLeastSignificantBits()); in getBytes() 173 bb.put((byte) osAppId.length); in getBytes() 174 bb.put(osAppId); in getBytes() 175 return bb.array(); in getBytes()
|
/frameworks/libs/binary_translation/backend/common/ |
D | machine_ir_debug.cc | 95 for (const auto* bb : bb_list()) { in GetDebugString() local 96 out += bb->GetDebugString(); in GetDebugString() 105 for (const auto* bb : bb_list()) { in GetDebugStringForDot() local 106 for (auto* in_edge : bb->in_edges()) { in GetDebugStringForDot() 110 str += StringPrintf("BB%d->BB%d", pred_bb->id(), bb->id()); in GetDebugStringForDot() 115 str += StringPrintf("BB%d [shape=box,label=\"BB%d\\l", bb->id(), bb->id()); in GetDebugStringForDot() 116 for (const auto* insn : bb->insn_list()) { in GetDebugStringForDot()
|
D | machine_ir_opt.cc | 77 while (auto* bb = forwarder_map[final_dest->id()]) { in RemoveForwarderBlocks() local 78 final_dest = bb; in RemoveForwarderBlocks() 153 for (auto*& bb : *bb_list) { in MoveColdBlocksToEnd() 154 if (!bb->is_recovery()) { in MoveColdBlocksToEnd() 155 std::swap(*normal_it++, bb); // can be the same in MoveColdBlocksToEnd()
|
/frameworks/av/media/module/codecs/m4v_h263/enc/src/ |
D | dct_inline.h | 273 register int32 bb = (int32)op2; in mla724() local 279 "r"(bb), in mla724() 289 register int32 bb = (int32)k14; in mla392() local 295 "r"(bb), in mla392() 305 register int32 bb = (int32)k12; in mla554() local 311 "r"(bb), in mla554() 321 register int32 bb = (int32)k14; in mla1338() local 327 "r"(bb), in mla1338() 336 register int32 bb = (int32)k14; in mla946() local 342 "r"(bb), in mla946() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaBassBoostTest.java | 79 BassBoost bb = null; in test0_0ConstructorAndRelease() local 81 bb = new BassBoost(0, 0); in test0_0ConstructorAndRelease() 82 assertNotNull(msg + ": could not create BassBoost", bb); in test0_0ConstructorAndRelease() 84 assertTrue(msg +": invalid effect ID", (bb.getId() != 0)); in test0_0ConstructorAndRelease() 94 if (bb != null) { in test0_0ConstructorAndRelease() 95 bb.release(); in test0_0ConstructorAndRelease()
|
/frameworks/compile/mclinker/unittests/ |
D | SymbolCategoryTest.cpp | 56 LDSymbol* bb = LDSymbol::Create(*b); in TEST_F() local 64 m_pTestee->add(*bb); in TEST_F() 99 LDSymbol* bb = LDSymbol::Create(*b); in TEST_F() local 105 b->setSymPtr(bb); in TEST_F() 113 m_pTestee->add(*bb); in TEST_F() 127 m_pTestee->changeToDynamic(*bb); in TEST_F()
|
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/ |
D | frontend_tests.cc | 59 for (auto* bb : machine_ir->bb_list()) { in FindEntryBasicBlock() local 60 if (bb->in_edges().size() == 0U) { in FindEntryBasicBlock() 61 return bb; in FindEntryBasicBlock() 75 void CheckBasicBlockEndsWith(const MachineBasicBlock* bb, MachineOpcode opcode) { in CheckBasicBlockEndsWith() argument 76 ASSERT_NE(bb, nullptr); in CheckBasicBlockEndsWith() 77 ASSERT_EQ(bb->insn_list().back()->opcode(), opcode); in CheckBasicBlockEndsWith() 221 auto* bb = FindEntrySuccessor(&machine_ir); in TEST() local 222 CheckBasicBlockEndsWith(bb, kMachineOpPseudoBranch); in TEST() 224 auto* next_bb = bb->out_edges()[0]->dst(); in TEST() 227 ASSERT_EQ(next_bb->out_edges()[1]->dst(), bb); in TEST()
|