/art/compiler/optimizing/ |
D | bounds_check_elimination_test.cc | 74 entry->AddInstruction(parameter1); in TEST_F() 75 entry->AddInstruction(parameter2); in TEST_F() 84 block1->AddInstruction(cmp); in TEST_F() 85 block1->AddInstruction(if_inst); in TEST_F() 96 block2->AddInstruction(null_check); in TEST_F() 97 block2->AddInstruction(array_length); in TEST_F() 98 block2->AddInstruction(bounds_check2); in TEST_F() 99 block2->AddInstruction(array_set); in TEST_F() 107 block3->AddInstruction(null_check); in TEST_F() 108 block3->AddInstruction(array_length); in TEST_F() [all …]
|
D | gvn_test.cc | 38 entry->AddInstruction(parameter); in TEST_F() 44 block->AddInstruction(new (GetAllocator()) HInstanceFieldGet(parameter, in TEST_F() 53 block->AddInstruction(new (GetAllocator()) HInstanceFieldGet(parameter, in TEST_F() 63 block->AddInstruction(new (GetAllocator()) HInstanceFieldGet(parameter, in TEST_F() 74 block->AddInstruction(new (GetAllocator()) HInstanceFieldSet(parameter, in TEST_F() 84 block->AddInstruction(new (GetAllocator()) HInstanceFieldGet(parameter, in TEST_F() 94 block->AddInstruction(new (GetAllocator()) HExit()); in TEST_F() 119 entry->AddInstruction(parameter); in TEST_F() 124 block->AddInstruction(new (GetAllocator()) HInstanceFieldGet(parameter, in TEST_F() 134 block->AddInstruction(new (GetAllocator()) HIf(block->GetLastInstruction())); in TEST_F() [all …]
|
D | load_store_analysis_test.cc | 60 entry->AddInstruction(array); in TEST_F() 61 entry->AddInstruction(index); in TEST_F() 62 entry->AddInstruction(array_get1); in TEST_F() 63 entry->AddInstruction(array_get2); in TEST_F() 64 entry->AddInstruction(array_set1); in TEST_F() 65 entry->AddInstruction(array_set2); in TEST_F() 159 entry->AddInstruction(object); in TEST_F() 160 entry->AddInstruction(set_field10); in TEST_F() 161 entry->AddInstruction(get_field10); in TEST_F() 162 entry->AddInstruction(get_field20); in TEST_F() [all …]
|
D | nodes_test.cc | 39 entry->AddInstruction(parameter); in TEST_F() 40 entry->AddInstruction(new (GetAllocator()) HGoto()); in TEST_F() 46 first_block->AddInstruction(null_check); in TEST_F() 47 first_block->AddInstruction(new (GetAllocator()) HReturnVoid()); in TEST_F() 52 exit_block->AddInstruction(new (GetAllocator()) HExit()); in TEST_F() 81 entry->AddInstruction(parameter1); in TEST_F() 82 entry->AddInstruction(parameter2); in TEST_F() 83 entry->AddInstruction(new (GetAllocator()) HExit()); in TEST_F() 97 TEST_F(NodeTest, AddInstruction) { in TEST_F() argument 104 entry->AddInstruction(parameter); in TEST_F() [all …]
|
D | ssa_liveness_analysis_test.cc | 62 entry_->AddInstruction(arg); in TEST_F() 66 block->AddInstruction(ret); in TEST_F() 67 block->AddInstruction(new (GetAllocator()) HExit()); in TEST_F() 92 entry_->AddInstruction(insn); in TEST_F() 97 block->AddInstruction(null_check); in TEST_F() 106 block->AddInstruction(length); in TEST_F() 108 block->AddInstruction(bounds_check); in TEST_F() 118 block->AddInstruction(array_set); in TEST_F() 161 entry_->AddInstruction(insn); in TEST_F() 166 block->AddInstruction(null_check); in TEST_F() [all …]
|
D | select_generator_test.cc | 53 entry_block_->AddInstruction(bool_param); in ConstructBasicGraphForSelect() 56 if_block->AddInstruction(new (GetAllocator()) HIf(bool_param)); in ConstructBasicGraphForSelect() 58 then_block->AddInstruction(instr); in ConstructBasicGraphForSelect() 59 then_block->AddInstruction(new (GetAllocator()) HGoto()); in ConstructBasicGraphForSelect() 61 else_block->AddInstruction(new (GetAllocator()) HGoto()); in ConstructBasicGraphForSelect()
|
D | constant_folding_test.cc | 751 entry_block->AddInstruction(parameter); in TEST_F() 752 entry_block->AddInstruction(new (GetAllocator()) HGoto()); in TEST_F() 757 block->AddInstruction(last = new (GetAllocator()) HAbove(zero, parameter)); in TEST_F() 758 block->AddInstruction(new (GetAllocator()) HSelect(last, parameter, parameter, 0)); in TEST_F() 759 block->AddInstruction(last = new (GetAllocator()) HAbove(parameter, zero)); in TEST_F() 760 block->AddInstruction(new (GetAllocator()) HSelect(last, parameter, parameter, 0)); in TEST_F() 761 block->AddInstruction(last = new (GetAllocator()) HAboveOrEqual(zero, parameter)); in TEST_F() 762 block->AddInstruction(new (GetAllocator()) HSelect(last, parameter, parameter, 0)); in TEST_F() 763 block->AddInstruction(last = new (GetAllocator()) HAboveOrEqual(parameter, zero)); in TEST_F() 764 block->AddInstruction(new (GetAllocator()) HSelect(last, parameter, parameter, 0)); in TEST_F() [all …]
|
D | loop_optimization_test.cc | 70 entry_block_->AddInstruction(parameter_); in BuildGraph() 71 return_block_->AddInstruction(new (GetAllocator()) HReturnVoid()); in BuildGraph() 72 exit_block_->AddInstruction(new (GetAllocator()) HExit()); in BuildGraph() 87 header->AddInstruction(new (GetAllocator()) HIf(parameter_)); in AddLoop() 89 body->AddInstruction(new (GetAllocator()) HGoto()); in AddLoop() 235 header->AddInstruction(new (GetAllocator()) HIf(parameter_)); in TEST_F() 236 body->AddInstruction(new (GetAllocator()) HGoto()); in TEST_F() 241 body->AddInstruction(add); in TEST_F() 286 if_block->AddInstruction(new (GetAllocator()) HIf(parameter_)); in TEST_F() 287 preheader0->AddInstruction(new (GetAllocator()) HGoto()); in TEST_F() [all …]
|
D | licm_test.cc | 80 entry_->AddInstruction(parameter_); in BuildLoop() 83 loop_preheader_->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoop() 84 loop_header_->AddInstruction(new (GetAllocator()) HIf(parameter_)); in BuildLoop() 85 loop_body_->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoop() 86 return_->AddInstruction(new (GetAllocator()) HReturnVoid()); in BuildLoop() 87 exit_->AddInstruction(new (GetAllocator()) HExit()); in BuildLoop()
|
D | register_allocator_test.cc | 497 entry->AddInstruction(parameter); in BuildIfElseWithPhi() 512 block->AddInstruction(test); in BuildIfElseWithPhi() 513 block->AddInstruction(new (GetAllocator()) HIf(test)); in BuildIfElseWithPhi() 525 then->AddInstruction(new (GetAllocator()) HGoto()); in BuildIfElseWithPhi() 526 else_->AddInstruction(new (GetAllocator()) HGoto()); in BuildIfElseWithPhi() 548 then->AddInstruction(*input1); in BuildIfElseWithPhi() 549 else_->AddInstruction(*input2); in BuildIfElseWithPhi() 550 join->AddInstruction(new (GetAllocator()) HExit()); in BuildIfElseWithPhi() 647 entry->AddInstruction(parameter); in BuildFieldReturn() 662 block->AddInstruction(*field); in BuildFieldReturn() [all …]
|
D | codegen_test.cc | 420 entry->AddInstruction(new (GetAllocator()) HGoto()); in TEST_F() 428 first_block->AddInstruction(equal); in TEST_F() 429 first_block->AddInstruction(new (GetAllocator()) HIf(equal)); in TEST_F() 444 exit_block->AddInstruction(new (GetAllocator()) HExit()); in TEST_F() 445 then_block->AddInstruction(new (GetAllocator()) HReturn(constant0)); in TEST_F() 446 else_block->AddInstruction(new (GetAllocator()) HReturn(constant1)); in TEST_F() 482 entry_block->AddInstruction(new (GetAllocator()) HGoto()); in TEST_F() 487 exit_block->AddInstruction(new (GetAllocator()) HExit()); in TEST_F() 496 code_block->AddInstruction(&cmp_lt); in TEST_F() 498 code_block->AddInstruction(&ret); in TEST_F() [all …]
|
D | superblock_cloner_test.cc | 77 loop_header->AddInstruction(suspend_check); in CreateBasicLoopDataFlow() 78 loop_header->AddInstruction(loop_check); in CreateBasicLoopDataFlow() 79 loop_header->AddInstruction(new (GetAllocator()) HIf(loop_check)); in CreateBasicLoopDataFlow() 92 loop_body->AddInstruction(null_check); in CreateBasicLoopDataFlow() 93 loop_body->AddInstruction(array_length); in CreateBasicLoopDataFlow() 94 loop_body->AddInstruction(bounds_check); in CreateBasicLoopDataFlow() 95 loop_body->AddInstruction(array_get); in CreateBasicLoopDataFlow() 96 loop_body->AddInstruction(add); in CreateBasicLoopDataFlow() 97 loop_body->AddInstruction(array_set); in CreateBasicLoopDataFlow() 98 loop_body->AddInstruction(induction_inc); in CreateBasicLoopDataFlow() [all …]
|
D | load_store_elimination_test.cc | 46 entry_block_->AddInstruction(i_add1_); in CreateEntryBlockInstructions() 47 entry_block_->AddInstruction(i_add4_); in CreateEntryBlockInstructions() 48 entry_block_->AddInstruction(new (GetAllocator()) HGoto()); in CreateEntryBlockInstructions() 81 pre_header_->AddInstruction(new (GetAllocator()) HGoto()); in CreateTestControlFlowGraph() 92 loop_->AddInstruction(suspend_check_); in CreateTestControlFlowGraph() 93 loop_->AddInstruction(inc_phi); in CreateTestControlFlowGraph() 94 loop_->AddInstruction(cmp); in CreateTestControlFlowGraph() 95 loop_->AddInstruction(hif); in CreateTestControlFlowGraph() 131 upper->AddInstruction(cmp); in CreateDiamondShapedCFG() 132 upper->AddInstruction(hif); in CreateDiamondShapedCFG() [all …]
|
D | graph_checker_test.cc | 39 entry_block->AddInstruction(new (GetAllocator()) HReturnVoid()); in CreateSimpleCFG() 43 exit_block->AddInstruction(new (GetAllocator()) HExit()); in CreateSimpleCFG()
|
D | graph_test.cc | 41 if_block->AddInstruction(equal); in CreateIfBlock() 43 if_block->AddInstruction(instr); in CreateIfBlock() 51 block->AddInstruction(got); in CreateGotoBlock() 65 block->AddInstruction(return_instr); in CreateReturnBlock() 73 block->AddInstruction(exit_instr); in CreateExitBlock()
|
D | optimizing_unit_test.h | 198 return_block_->AddInstruction(new (GetAllocator()) HReturnVoid()); in InitGraph() 199 exit_block_->AddInstruction(new (GetAllocator()) HExit()); in InitGraph() 203 entry_block_->AddInstruction(parameter); in AddParameter()
|
D | induction_var_range_test.cc | 73 entry_block_->AddInstruction(x_); in BuildGraph() 78 entry_block_->AddInstruction(y_); in BuildGraph() 101 loop_preheader_->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoop() 110 loop_header_->AddInstruction(condition_); in BuildLoop() 111 loop_header_->AddInstruction(new (GetAllocator()) HIf(condition_)); in BuildLoop() 114 loop_body_->AddInstruction(increment_); // i += s in BuildLoop() 116 loop_body_->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoop() 117 return_block->AddInstruction(new (GetAllocator()) HReturnVoid()); in BuildLoop() 118 exit_block_->AddInstruction(new (GetAllocator()) HExit()); in BuildLoop() 709 entry_block_->AddInstruction(new_array); in TEST_F() [all …]
|
D | induction_var_analysis_test.cc | 96 entry_->AddInstruction(parameter_); in BuildLoopNest() 104 return_->AddInstruction(new (GetAllocator()) HReturnVoid()); in BuildLoopNest() 105 exit_->AddInstruction(new (GetAllocator()) HExit()); in BuildLoopNest() 110 loop_preheader_[d]->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoopNest() 113 loop_header_[d]->AddInstruction(compare); in BuildLoopNest() 114 loop_header_[d]->AddInstruction(new (GetAllocator()) HIf(compare)); in BuildLoopNest() 116 loop_body_[d]->AddInstruction(increment_[d]); in BuildLoopNest() 117 loop_body_[d]->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoopNest() 138 cond->AddInstruction(new (GetAllocator()) HIf(parameter_)); in BuildIf() 351 ifTrue->AddInstruction(inc1); in TEST_F() [all …]
|
D | block_builder.cc | 340 new_catch_block->AddInstruction(new (allocator_) HGoto(address)); in InsertTryBoundaryBlocks() 367 try_block->CreateImmediateDominator()->AddInstruction(try_entry); in InsertTryBoundaryBlocks() 395 graph_->SplitEdge(try_block, successor)->AddInstruction(try_exit); in InsertTryBoundaryBlocks() 439 loop_block->AddInstruction(new (allocator_) HIf(graph_->GetIntConstant(0), kNoDexPc)); in InsertSynthesizedLoopsForOsr()
|
D | code_sinking.cc | 122 static void AddInstruction(HInstruction* instruction, in AddInstruction() function 140 AddInstruction(input, processed_instructions, discard_blocks, worklist); in AddInputs() 391 AddInstruction(use.GetUser(), processed_instructions, post_dominated, &worklist); in SinkCodeToUncommonBranch()
|
D | scheduler_test.cc | 117 entry->AddInstruction(array); in TestBuildDependencyGraphAndSchedule() 129 block1->AddInstruction(instr); in TestBuildDependencyGraphAndSchedule() 273 entry->AddInstruction(instr); in TestDependencyGraphOnAliasingArrayAccesses()
|
D | nodes_vector_test.cc | 47 entry_block_->AddInstruction(int8_parameter_); in BuildGraph() 52 entry_block_->AddInstruction(int16_parameter_); in BuildGraph() 57 entry_block_->AddInstruction(int32_parameter_); in BuildGraph()
|
D | nodes.cc | 362 new_block->AddInstruction(new (allocator_) HGoto(successor->GetDexPc())); in SplitCriticalEdge() 450 preheader->AddInstruction(new (allocator_) HGoto(header->GetDexPc())); in TransformLoopToSinglePreheaderFormat() 652 entry_block_->AddInstruction(constant); in InsertConstant() 683 entry_block_->AddInstruction(cached_current_method_); in GetCurrentMethod() 998 instruction_list->AddInstruction(instruction); in Add() 1001 void HBasicBlock::AddInstruction(HInstruction* instruction) { in AddInstruction() function in art::HBasicBlock 1159 void HInstructionList::AddInstruction(HInstruction* instruction) { in AddInstruction() function in art::HInstructionList 1854 AddInstruction(new (GetGraph()->GetAllocator()) HGoto(new_block->GetDexPc())); in SplitBefore() 2226 predecessor->AddInstruction(new (graph_->GetAllocator()) HGoto(last_instruction->GetDexPc())); in DisconnectAndDelete() 2587 predecessor->AddInstruction(new (allocator) HGoto(last->GetDexPc())); in InlineInto() [all …]
|
D | bounds_check_elimination.cc | 1895 true_block->AddInstruction(new (GetGraph()->GetAllocator()) HGoto()); in TransformLoopForDeoptimizationIfNeeded() 1896 false_block->AddInstruction(new (GetGraph()->GetAllocator()) HGoto()); in TransformLoopForDeoptimizationIfNeeded() 1897 new_preheader->AddInstruction(new (GetGraph()->GetAllocator()) HGoto()); in TransformLoopForDeoptimizationIfNeeded() 1901 if_block->AddInstruction(new (GetGraph()->GetAllocator()) HGoto()); // placeholder in TransformLoopForDeoptimizationIfNeeded() 1906 if_block->AddInstruction(new (GetGraph()->GetAllocator()) HIf(condition)); in TransformLoopForDeoptimizationIfNeeded()
|
D | inliner.cc | 1139 otherwise->AddInstruction(new (allocator) HGoto(dex_pc)); in CreateDiamondPatternForPolymorphicInline() 1140 end_then->AddInstruction(new (allocator) HGoto(dex_pc)); in CreateDiamondPatternForPolymorphicInline() 1141 cursor_block->AddInstruction(new (allocator) HIf(compare, dex_pc)); in CreateDiamondPatternForPolymorphicInline()
|