Home
last modified time | relevance | path

Searched refs:bb1 (Results 1 – 10 of 10) sorted by relevance

/frameworks/libs/binary_translation/backend/x86_64/
Dmachine_ir_check_test.cc36 auto* bb1 = machine_ir.NewBasicBlock(); in TEST() local
38 machine_ir.bb_list().push_back(bb1); in TEST()
41 auto* bad_edge = NewInArena<MachineEdge>(&arena, &arena, bb1, bb2); in TEST()
42 auto* good_edge = NewInArena<MachineEdge>(&arena, &arena, bb2, bb1); in TEST()
43 bb1->in_edges().push_back(bad_edge); in TEST()
53 auto* bb1 = machine_ir.NewBasicBlock(); in TEST() local
55 machine_ir.bb_list().push_back(bb1); in TEST()
58 auto* bad_edge = NewInArena<MachineEdge>(&arena, &arena, bb2, bb1); in TEST()
59 auto* good_edge = NewInArena<MachineEdge>(&arena, &arena, bb1, bb2); in TEST()
60 bb1->out_edges().push_back(bad_edge); in TEST()
[all …]
Dmachine_ir_analysis_test.cc55 auto bb1 = machine_ir.NewBasicBlock(); in TEST() local
58 machine_ir.AddEdge(bb1, bb2); in TEST()
62 builder.StartBasicBlock(bb1); in TEST()
87 auto bb1 = machine_ir.NewBasicBlock(); in TEST() local
91 machine_ir.AddEdge(bb1, bb2); in TEST()
96 builder.StartBasicBlock(bb1); in TEST()
126 auto bb1 = machine_ir.NewBasicBlock(); in TEST() local
130 machine_ir.AddEdge(bb1, bb2); in TEST()
136 builder.StartBasicBlock(bb1); in TEST()
167 auto bb1 = machine_ir.NewBasicBlock(); in TEST() local
[all …]
Dmachine_ir_test_corpus.cc39 auto* bb1 = machine_ir->NewBasicBlock(); in BuildDataFlowAcrossBasicBlocks() local
43 machine_ir->AddEdge(bb1, bb2); in BuildDataFlowAcrossBasicBlocks()
46 builder.StartBasicBlock(bb1); in BuildDataFlowAcrossBasicBlocks()
59 return {bb1, bb2, bb3, vreg1, vreg2}; in BuildDataFlowAcrossBasicBlocks()
71 auto* bb1 = machine_ir->NewBasicBlock(); in BuildDataFlowFromTwoPreds() local
75 machine_ir->AddEdge(bb1, bb3); in BuildDataFlowFromTwoPreds()
78 builder.StartBasicBlock(bb1); in BuildDataFlowFromTwoPreds()
90 return {bb1, bb2, bb3, vreg}; in BuildDataFlowFromTwoPreds()
102 auto* bb1 = machine_ir->NewBasicBlock(); in BuildDataFlowToTwoSuccs() local
106 machine_ir->AddEdge(bb1, bb2); in BuildDataFlowToTwoSuccs()
[all …]
Dmachine_ir_opt_test.cc269 auto bb1 = machine_ir.NewBasicBlock(); in TEST() local
273 machine_ir.AddEdge(bb1, bb3); in TEST()
277 builder.StartBasicBlock(bb1); in TEST()
293 int bb1_index_in_bb3 = GetInEdgeIndex(bb3, bb1); in TEST()
314 auto bb1 = machine_ir.NewBasicBlock(); in TEST() local
317 machine_ir.AddEdge(bb1, bb2); in TEST()
321 builder.StartBasicBlock(bb1); in TEST()
334 int bb1_index_in_bb2 = GetInEdgeIndex(bb2, bb1); in TEST()
353 auto bb1 = machine_ir.NewBasicBlock(); in TEST() local
357 machine_ir.AddEdge(bb1, bb3); in TEST()
[all …]
Dcontext_liveness_analyzer_test.cc75 auto* bb1 = machine_ir.NewBasicBlock(); in TEST() local
77 machine_ir.AddEdge(bb1, bb2); in TEST()
81 builder.StartBasicBlock(bb1); in TEST()
93 CheckBBLiveIn(&analyzer, bb1, {}); in TEST()
102 auto* bb1 = machine_ir.NewBasicBlock(); in TEST() local
104 machine_ir.AddEdge(bb1, bb2); in TEST()
108 builder.StartBasicBlock(bb1); in TEST()
122 CheckBBLiveIn(&analyzer, bb1, {0, 2}); in TEST()
130 auto* bb1 = machine_ir.NewBasicBlock(); in TEST() local
133 machine_ir.AddEdge(bb1, bb2); in TEST()
[all …]
Dmachine_ir_test.cc61 auto* bb1 = machine_ir.NewBasicBlock(); in TEST() local
65 machine_ir.AddEdge(bb1, bb2); in TEST()
66 machine_ir.AddEdge(bb1, bb3); in TEST()
68 builder.StartBasicBlock(bb1); in TEST()
81 auto insn_it = std::next(bb1->insn_list().begin()); in TEST()
82 MachineBasicBlock* new_bb = machine_ir.SplitBasicBlock(bb1, insn_it); in TEST()
85 EXPECT_EQ(bb1->out_edges().size(), 1UL); in TEST()
86 EXPECT_EQ(bb1->out_edges().front()->src(), bb1); in TEST()
87 EXPECT_EQ(bb1->out_edges().front()->dst(), new_bb); in TEST()
90 EXPECT_EQ(new_bb->in_edges().front()->src(), bb1); in TEST()
Drename_vregs_test.cc65 auto* bb1 = machine_ir.NewBasicBlock(); in TEST() local
68 machine_ir.AddEdge(bb1, bb2); in TEST()
70 builder.StartBasicBlock(bb1); in TEST()
81 ASSERT_EQ(bb1->insn_list().size(), 2U); in TEST()
82 auto it = bb1->insn_list().begin(); in TEST()
99 auto [bb1, bb2, bb3, vreg1, vreg2] = BuildDataFlowAcrossBasicBlocks(&machine_ir); in TEST()
107 ASSERT_EQ(bb1->insn_list().size(), 3U); in TEST()
108 auto it = bb1->insn_list().begin(); in TEST()
162 auto [bb1, bb2, bb3, vreg] = BuildDataFlowFromTwoPreds(&machine_ir); in TEST()
170 ASSERT_EQ(bb1->insn_list().size(), 3U); in TEST()
[all …]
Dliveness_analyzer_test.cc184 auto [bb1, bb2, bb3, vreg1, vreg2] = BuildDataFlowAcrossBasicBlocks(&machine_ir); in TEST()
189 ExpectNoLiveIns(&liveness, bb1, vreg1, vreg2); in TEST()
198 auto [bb1, bb2, bb3, vreg] = BuildDataFlowFromTwoPreds(&machine_ir); in TEST()
203 ExpectNoLiveIns(&liveness, bb1, vreg); in TEST()
212 auto [bb1, bb2, bb3, vreg] = BuildDataFlowToTwoSuccs(&machine_ir); in TEST()
217 ExpectNoLiveIns(&liveness, bb1, vreg); in TEST()
226 auto [bb1, bb2, bb3, bb4, vreg] = BuildDataFlowAcrossEmptyLoop(&machine_ir); in TEST()
231 ExpectNoLiveIns(&liveness, bb1, vreg); in TEST()
Drename_vregs_local_test.cc261 auto* bb1 = machine_ir.NewBasicBlock(); in TEST() local
269 builder.StartBasicBlock(bb1); in TEST()
278 bb1->live_out().push_back(vreg1); in TEST()
279 bb1->live_out().push_back(vreg2); in TEST()
284 machine_ir.AddEdge(bb1, bb2); in TEST()
288 EXPECT_EQ(bb1->insn_list().size(), 4UL); in TEST()
291 MachineReg new_vreg1 = bb1->live_out()[0]; in TEST()
292 MachineReg new_vreg2 = bb1->live_out()[1]; in TEST()
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/
Dfrontend_tests.cc271 auto* bb1 = FindEntrySuccessor(&machine_ir); in TEST() local
272 CheckBasicBlockEndsWith(bb1, kMachineOpPseudoCondBranch); in TEST()
274 auto* bb2 = bb1->out_edges()[1]->dst(); in TEST()
276 ASSERT_EQ(bb2->out_edges()[1]->dst(), bb1); in TEST()
278 auto* bb3 = bb1->out_edges()[0]->dst(); in TEST()
329 auto* bb1 = bb0->out_edges()[1]->dst(); in TEST() local
330 CheckBasicBlockEndsWith(bb1, kMachineOpPseudoBranch); in TEST()
338 EXPECT_EQ(bb1->out_edges()[0]->dst(), bb4); in TEST()