/frameworks/libs/binary_translation/backend/x86_64/ |
D | machine_ir_test_corpus.cc | 41 auto* bb3 = machine_ir->NewBasicBlock(); in BuildDataFlowAcrossBasicBlocks() local 44 machine_ir->AddEdge(bb2, bb3); in BuildDataFlowAcrossBasicBlocks() 53 builder.Gen<PseudoBranch>(bb3); in BuildDataFlowAcrossBasicBlocks() 55 builder.StartBasicBlock(bb3); in BuildDataFlowAcrossBasicBlocks() 59 return {bb1, bb2, bb3, vreg1, vreg2}; in BuildDataFlowAcrossBasicBlocks() 73 auto* bb3 = machine_ir->NewBasicBlock(); in BuildDataFlowFromTwoPreds() local 75 machine_ir->AddEdge(bb1, bb3); in BuildDataFlowFromTwoPreds() 76 machine_ir->AddEdge(bb2, bb3); in BuildDataFlowFromTwoPreds() 80 builder.Gen<PseudoBranch>(bb3); in BuildDataFlowFromTwoPreds() 84 builder.Gen<PseudoBranch>(bb3); in BuildDataFlowFromTwoPreds() [all …]
|
D | machine_ir_analysis_test.cc | 57 auto bb3 = machine_ir.NewBasicBlock(); in TEST() local 60 machine_ir.AddEdge(bb2, bb3); in TEST() 66 builder.Gen<PseudoCondBranch>(CodeEmitter::Condition::kZero, bb2, bb3, x86_64::kMachineRegFLAGS); in TEST() 68 builder.StartBasicBlock(bb3); in TEST() 89 auto bb3 = machine_ir.NewBasicBlock(); in TEST() local 92 machine_ir.AddEdge(bb2, bb3); in TEST() 93 machine_ir.AddEdge(bb3, bb2); in TEST() 94 machine_ir.AddEdge(bb3, bb4); in TEST() 100 builder.Gen<PseudoBranch>(bb3); in TEST() 102 builder.StartBasicBlock(bb3); in TEST() [all …]
|
D | machine_ir_opt_test.cc | 271 auto bb3 = machine_ir.NewBasicBlock(); in TEST() local 273 machine_ir.AddEdge(bb1, bb3); in TEST() 274 machine_ir.AddEdge(bb2, bb3); in TEST() 278 builder.Gen<PseudoBranch>(bb3); in TEST() 281 builder.Gen<PseudoCondBranch>(CodeEmitter::Condition::kZero, bb3, bb4, x86_64::kMachineRegFLAGS); in TEST() 283 builder.StartBasicBlock(bb3); in TEST() 292 ASSERT_EQ(bb3->in_edges().size(), 2UL); in TEST() 293 int bb1_index_in_bb3 = GetInEdgeIndex(bb3, bb1); in TEST() 295 auto new_bb = bb3->in_edges()[1 - bb1_index_in_bb3]->src(); in TEST() 316 auto bb3 = machine_ir.NewBasicBlock(); in TEST() local [all …]
|
D | machine_ir_test.cc | 63 auto* bb3 = machine_ir.NewBasicBlock(); in TEST() local 66 machine_ir.AddEdge(bb1, bb3); in TEST() 71 builder.Gen<PseudoCondBranch>(CodeEmitter::Condition::kZero, bb2, bb3, x86_64::kMachineRegFLAGS); in TEST() 77 builder.StartBasicBlock(bb3); in TEST() 96 EXPECT_EQ(new_bb->out_edges().back()->dst(), bb3); in TEST() 102 EXPECT_EQ(bb3->in_edges().size(), 1UL); in TEST() 103 EXPECT_EQ(bb3->in_edges().front()->src(), new_bb); in TEST() 104 EXPECT_EQ(bb3->in_edges().front()->dst(), bb3); in TEST()
|
D | rename_vregs_test.cc | 99 auto [bb1, bb2, bb3, vreg1, vreg2] = BuildDataFlowAcrossBasicBlocks(&machine_ir); in TEST() 148 ASSERT_EQ(bb3->insn_list().size(), 3U); in TEST() 149 it = bb3->insn_list().begin(); in TEST() 162 auto [bb1, bb2, bb3, vreg] = BuildDataFlowFromTwoPreds(&machine_ir); in TEST() 195 ASSERT_EQ(bb3->insn_list().size(), 2U); in TEST() 196 it = bb3->insn_list().begin(); in TEST() 205 auto [bb1, bb2, bb3, vreg] = BuildDataFlowToTwoSuccs(&machine_ir); in TEST() 234 ASSERT_EQ(bb3->insn_list().size(), 3U); in TEST() 235 it = bb3->insn_list().begin(); in TEST() 248 auto [bb1, bb2, bb3, bb4, vreg] = BuildDataFlowAcrossEmptyLoop(&machine_ir); in TEST() [all …]
|
D | liveness_analyzer_test.cc | 184 auto [bb1, bb2, bb3, vreg1, vreg2] = BuildDataFlowAcrossBasicBlocks(&machine_ir); in TEST() 191 ExpectSingleLiveIn(&liveness, bb3, vreg1, vreg2); in TEST() 198 auto [bb1, bb2, bb3, vreg] = BuildDataFlowFromTwoPreds(&machine_ir); in TEST() 205 ExpectSingleLiveIn(&liveness, bb3, vreg); in TEST() 212 auto [bb1, bb2, bb3, vreg] = BuildDataFlowToTwoSuccs(&machine_ir); in TEST() 219 ExpectSingleLiveIn(&liveness, bb3, vreg); in TEST() 226 auto [bb1, bb2, bb3, bb4, vreg] = BuildDataFlowAcrossEmptyLoop(&machine_ir); in TEST() 233 ExpectSingleLiveIn(&liveness, bb3, vreg); in TEST()
|
D | machine_ir_check_test.cc | 244 auto* bb3 = machine_ir.NewBasicBlock(); in TEST() local 247 machine_ir.AddEdge(bb1, bb3); in TEST() 252 builder.Gen<PseudoCondBranch>(CodeEmitter::Condition::kZero, bb2, bb3, x86_64::kMachineRegFLAGS); in TEST() 259 builder.StartBasicBlock(bb3); in TEST() 294 auto* bb3 = machine_ir.NewBasicBlock(); in TEST() local 296 machine_ir.AddEdge(bb1, bb3); in TEST() 302 builder.Gen<PseudoCondBranch>(CodeEmitter::Condition::kZero, bb2, bb3, x86_64::kMachineRegFLAGS); in TEST() 308 builder.StartBasicBlock(bb3); in TEST() 322 auto* bb3 = machine_ir.NewBasicBlock(); in TEST() local 330 builder.Gen<PseudoCondBranch>(CodeEmitter::Condition::kZero, bb2, bb3, x86_64::kMachineRegFLAGS); in TEST() [all …]
|
D | context_liveness_analyzer_test.cc | 132 auto* bb3 = machine_ir.NewBasicBlock(); in TEST() local 134 machine_ir.AddEdge(bb1, bb3); in TEST() 139 builder.Gen<PseudoCondBranch>(CodeEmitter::Condition::kZero, bb2, bb3, x86_64::kMachineRegFLAGS); in TEST() 146 builder.StartBasicBlock(bb3); in TEST() 157 CheckBBLiveIn(&analyzer, bb3, {0, 2}); in TEST()
|
/frameworks/libs/binary_translation/heavy_optimizer/riscv64/ |
D | frontend_tests.cc | 278 auto* bb3 = bb1->out_edges()[0]->dst(); in TEST() local 279 CheckBasicBlockEndsWith(bb3, kMachineOpPseudoBranch); in TEST() 281 auto* bb4 = bb3->out_edges()[0]->dst(); in TEST()
|