Home
last modified time | relevance | path

Searched refs:AddInstruction (Results 1 – 25 of 32) sorted by relevance

12

/art/compiler/optimizing/
Dbounds_check_elimination_test.cc75 entry->AddInstruction(parameter1); in TEST_F()
76 entry->AddInstruction(parameter2); in TEST_F()
85 block1->AddInstruction(cmp); in TEST_F()
86 block1->AddInstruction(if_inst); in TEST_F()
97 block2->AddInstruction(null_check); in TEST_F()
98 block2->AddInstruction(array_length); in TEST_F()
99 block2->AddInstruction(bounds_check2); in TEST_F()
100 block2->AddInstruction(array_set); in TEST_F()
108 block3->AddInstruction(null_check); in TEST_F()
109 block3->AddInstruction(array_length); in TEST_F()
[all …]
Dload_store_elimination_test.cc98 entry_block_->AddInstruction(i_add1_); in CreateEntryBlockInstructions()
99 entry_block_->AddInstruction(i_add4_); in CreateEntryBlockInstructions()
100 entry_block_->AddInstruction(new (GetAllocator()) HGoto()); in CreateEntryBlockInstructions()
133 pre_header_->AddInstruction(new (GetAllocator()) HGoto()); in CreateTestControlFlowGraph()
144 loop_->AddInstruction(suspend_check_); in CreateTestControlFlowGraph()
145 loop_->AddInstruction(inc_phi); in CreateTestControlFlowGraph()
146 loop_->AddInstruction(cmp); in CreateTestControlFlowGraph()
147 loop_->AddInstruction(hif); in CreateTestControlFlowGraph()
181 upper->AddInstruction(cmp); in CreateDiamondShapedCFG()
182 upper->AddInstruction(hif); in CreateDiamondShapedCFG()
[all …]
Dload_store_analysis_test.cc83 entry->AddInstruction(array); in TEST_F()
84 entry->AddInstruction(index); in TEST_F()
85 entry->AddInstruction(array_get1); in TEST_F()
86 entry->AddInstruction(array_get2); in TEST_F()
87 entry->AddInstruction(array_set1); in TEST_F()
88 entry->AddInstruction(array_set2); in TEST_F()
184 entry->AddInstruction(object); in TEST_F()
185 entry->AddInstruction(set_field10); in TEST_F()
186 entry->AddInstruction(get_field10); in TEST_F()
187 entry->AddInstruction(get_field20); in TEST_F()
[all …]
Dgvn_test.cc39 entry->AddInstruction(parameter); in TEST_F()
45 block->AddInstruction(new (GetAllocator()) HInstanceFieldGet(parameter, in TEST_F()
54 block->AddInstruction(new (GetAllocator()) HInstanceFieldGet(parameter, in TEST_F()
64 block->AddInstruction(new (GetAllocator()) HInstanceFieldGet(parameter, in TEST_F()
75 block->AddInstruction(new (GetAllocator()) HInstanceFieldSet(parameter, in TEST_F()
85 block->AddInstruction(new (GetAllocator()) HInstanceFieldGet(parameter, in TEST_F()
95 block->AddInstruction(new (GetAllocator()) HExit()); in TEST_F()
120 entry->AddInstruction(parameter); in TEST_F()
125 block->AddInstruction(new (GetAllocator()) HInstanceFieldGet(parameter, in TEST_F()
135 block->AddInstruction(new (GetAllocator()) HIf(block->GetLastInstruction())); in TEST_F()
[all …]
Dinstruction_simplifier_test.cc184 entry->AddInstruction(new_inst_klass); in TEST_P()
186 entry->AddInstruction(target_klass); in TEST_P()
188 entry->AddInstruction(new_inst); in TEST_P()
189 entry->AddInstruction(instance_of); in TEST_P()
190 entry->AddInstruction(if_inst); in TEST_P()
198 left->AddInstruction(goto_left); in TEST_P()
201 right->AddInstruction(goto_right); in TEST_P()
205 breturn->AddInstruction(read_bottom); in TEST_P()
206 breturn->AddInstruction(return_exit); in TEST_P()
254 entry->AddInstruction(new_inst_klass); in TEST_P()
[all …]
Dssa_liveness_analysis_test.cc63 entry_->AddInstruction(arg); in TEST_F()
67 block->AddInstruction(ret); in TEST_F()
68 block->AddInstruction(new (GetAllocator()) HExit()); in TEST_F()
93 entry_->AddInstruction(insn); in TEST_F()
98 block->AddInstruction(null_check); in TEST_F()
107 block->AddInstruction(length); in TEST_F()
109 block->AddInstruction(bounds_check); in TEST_F()
119 block->AddInstruction(array_set); in TEST_F()
162 entry_->AddInstruction(insn); in TEST_F()
167 block->AddInstruction(null_check); in TEST_F()
[all …]
Dnodes_test.cc152 entry->AddInstruction(parameter); in TEST_F()
153 entry->AddInstruction(new (GetAllocator()) HGoto()); in TEST_F()
159 first_block->AddInstruction(null_check); in TEST_F()
160 first_block->AddInstruction(new (GetAllocator()) HReturnVoid()); in TEST_F()
165 exit_block->AddInstruction(new (GetAllocator()) HExit()); in TEST_F()
194 entry->AddInstruction(parameter1); in TEST_F()
195 entry->AddInstruction(parameter2); in TEST_F()
196 entry->AddInstruction(new (GetAllocator()) HExit()); in TEST_F()
210 TEST_F(NodeTest, AddInstruction) { in TEST_F() argument
217 entry->AddInstruction(parameter); in TEST_F()
[all …]
Dconstant_folding_test.cc753 entry_block->AddInstruction(parameter); in TEST_F()
754 entry_block->AddInstruction(new (GetAllocator()) HGoto()); in TEST_F()
759 block->AddInstruction(last = new (GetAllocator()) HAbove(zero, parameter)); in TEST_F()
760 block->AddInstruction(new (GetAllocator()) HSelect(last, parameter, parameter, 0)); in TEST_F()
761 block->AddInstruction(last = new (GetAllocator()) HAbove(parameter, zero)); in TEST_F()
762 block->AddInstruction(new (GetAllocator()) HSelect(last, parameter, parameter, 0)); in TEST_F()
763 block->AddInstruction(last = new (GetAllocator()) HAboveOrEqual(zero, parameter)); in TEST_F()
764 block->AddInstruction(new (GetAllocator()) HSelect(last, parameter, parameter, 0)); in TEST_F()
765 block->AddInstruction(last = new (GetAllocator()) HAboveOrEqual(parameter, zero)); in TEST_F()
766 block->AddInstruction(new (GetAllocator()) HSelect(last, parameter, parameter, 0)); in TEST_F()
[all …]
Dselect_generator_test.cc54 entry_block_->AddInstruction(bool_param); in ConstructBasicGraphForSelect()
57 if_block->AddInstruction(new (GetAllocator()) HIf(bool_param)); in ConstructBasicGraphForSelect()
59 then_block->AddInstruction(instr); in ConstructBasicGraphForSelect()
60 then_block->AddInstruction(new (GetAllocator()) HGoto()); in ConstructBasicGraphForSelect()
62 else_block->AddInstruction(new (GetAllocator()) HGoto()); in ConstructBasicGraphForSelect()
Dloop_optimization_test.cc71 entry_block_->AddInstruction(parameter_); in BuildGraph()
72 return_block_->AddInstruction(new (GetAllocator()) HReturnVoid()); in BuildGraph()
73 exit_block_->AddInstruction(new (GetAllocator()) HExit()); in BuildGraph()
88 header->AddInstruction(new (GetAllocator()) HIf(parameter_)); in AddLoop()
90 body->AddInstruction(new (GetAllocator()) HGoto()); in AddLoop()
233 header->AddInstruction(new (GetAllocator()) HIf(parameter_)); in TEST_F()
234 body->AddInstruction(new (GetAllocator()) HGoto()); in TEST_F()
239 body->AddInstruction(add); in TEST_F()
284 if_block->AddInstruction(new (GetAllocator()) HIf(parameter_)); in TEST_F()
285 preheader0->AddInstruction(new (GetAllocator()) HGoto()); in TEST_F()
[all …]
Dregister_allocator_test.cc466 entry->AddInstruction(parameter); in BuildIfElseWithPhi()
481 block->AddInstruction(test); in BuildIfElseWithPhi()
482 block->AddInstruction(new (GetAllocator()) HIf(test)); in BuildIfElseWithPhi()
494 then->AddInstruction(new (GetAllocator()) HGoto()); in BuildIfElseWithPhi()
495 else_->AddInstruction(new (GetAllocator()) HGoto()); in BuildIfElseWithPhi()
517 then->AddInstruction(*input1); in BuildIfElseWithPhi()
518 else_->AddInstruction(*input2); in BuildIfElseWithPhi()
519 join->AddInstruction(new (GetAllocator()) HExit()); in BuildIfElseWithPhi()
610 entry->AddInstruction(parameter); in BuildFieldReturn()
625 block->AddInstruction(*field); in BuildFieldReturn()
[all …]
Dlicm_test.cc81 entry_->AddInstruction(parameter_); in BuildLoop()
84 loop_preheader_->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoop()
85 loop_header_->AddInstruction(new (GetAllocator()) HIf(parameter_)); in BuildLoop()
86 loop_body_->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoop()
87 return_->AddInstruction(new (GetAllocator()) HReturnVoid()); in BuildLoop()
88 exit_->AddInstruction(new (GetAllocator()) HExit()); in BuildLoop()
Dcodegen_test.cc420 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 …]
Dsuperblock_cloner_test.cc78 loop_header->AddInstruction(suspend_check); in CreateBasicLoopDataFlow()
79 loop_header->AddInstruction(loop_check); in CreateBasicLoopDataFlow()
80 loop_header->AddInstruction(new (GetAllocator()) HIf(loop_check)); in CreateBasicLoopDataFlow()
93 loop_body->AddInstruction(null_check); in CreateBasicLoopDataFlow()
94 loop_body->AddInstruction(array_length); in CreateBasicLoopDataFlow()
95 loop_body->AddInstruction(bounds_check); in CreateBasicLoopDataFlow()
96 loop_body->AddInstruction(array_get); in CreateBasicLoopDataFlow()
97 loop_body->AddInstruction(add); in CreateBasicLoopDataFlow()
98 loop_body->AddInstruction(array_set); in CreateBasicLoopDataFlow()
99 loop_body->AddInstruction(induction_inc); in CreateBasicLoopDataFlow()
[all …]
Dgraph_test.cc42 if_block->AddInstruction(equal); in CreateIfBlock()
44 if_block->AddInstruction(instr); in CreateIfBlock()
52 block->AddInstruction(got); in CreateGotoBlock()
66 block->AddInstruction(return_instr); in CreateReturnBlock()
74 block->AddInstruction(exit_instr); in CreateExitBlock()
Dgraph_checker_test.cc40 entry_block->AddInstruction(new (GetAllocator()) HReturnVoid()); in CreateSimpleCFG()
44 exit_block->AddInstruction(new (GetAllocator()) HExit()); in CreateSimpleCFG()
Dinduction_var_analysis_test.cc97 entry_->AddInstruction(parameter_); in BuildLoopNest()
105 return_->AddInstruction(new (GetAllocator()) HReturnVoid()); in BuildLoopNest()
106 exit_->AddInstruction(new (GetAllocator()) HExit()); in BuildLoopNest()
111 loop_preheader_[d]->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoopNest()
114 loop_header_[d]->AddInstruction(compare); in BuildLoopNest()
115 loop_header_[d]->AddInstruction(new (GetAllocator()) HIf(compare)); in BuildLoopNest()
117 loop_body_[d]->AddInstruction(increment_[d]); in BuildLoopNest()
118 loop_body_[d]->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoopNest()
139 cond->AddInstruction(new (GetAllocator()) HIf(parameter_)); in BuildIf()
352 ifTrue->AddInstruction(inc1); in TEST_F()
[all …]
Dcode_sinking.cc152 static void AddInstruction(HInstruction* instruction, in AddInstruction() function
170 AddInstruction(input, processed_instructions, discard_blocks, worklist); in AddInputs()
494 AddInstruction(use.GetUser(), processed_instructions, post_dominated, &worklist); in SinkCodeToUncommonBranch()
629 new_block->AddInstruction(new (graph_->GetAllocator()) HReturn(new_phi, exit->GetDexPc())); in ReturnSinking()
644 new_block->AddInstruction(new (graph_->GetAllocator()) HReturnVoid(exit->GetDexPc())); in ReturnSinking()
Dblock_builder.cc327 new_catch_block->AddInstruction(new (allocator_) HGoto(address)); in InsertTryBoundaryBlocks()
354 try_block->CreateImmediateDominator()->AddInstruction(try_entry); in InsertTryBoundaryBlocks()
382 graph_->SplitEdge(try_block, successor)->AddInstruction(try_exit); in InsertTryBoundaryBlocks()
426 loop_block->AddInstruction(new (allocator_) HIf(graph_->GetIntConstant(0), kNoDexPc)); in InsertSynthesizedLoopsForOsr()
Dreference_type_propagation_test.cc312 start->AddInstruction(maybe_null_val); in RunVisitListTest()
313 start->AddInstruction(cls); in RunVisitListTest()
314 start->AddInstruction(new_inst); in RunVisitListTest()
406 start->AddInstruction(cls); in RunVisitListTest()
407 start->AddInstruction(new_inst); in RunVisitListTest()
Dinduction_var_range_test.cc74 entry_block_->AddInstruction(x_); in BuildGraph()
79 entry_block_->AddInstruction(y_); in BuildGraph()
102 loop_preheader_->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoop()
111 loop_header_->AddInstruction(condition_); in BuildLoop()
112 loop_header_->AddInstruction(new (GetAllocator()) HIf(condition_)); in BuildLoop()
115 loop_body_->AddInstruction(increment_); // i += s in BuildLoop()
117 loop_body_->AddInstruction(new (GetAllocator()) HGoto()); in BuildLoop()
118 return_block->AddInstruction(new (GetAllocator()) HReturnVoid()); in BuildLoop()
119 exit_block_->AddInstruction(new (GetAllocator()) HExit()); in BuildLoop()
930 entry_block_->AddInstruction(new_array); in TEST_F()
[all …]
Dscheduler_test.cc118 entry->AddInstruction(array); in TestBuildDependencyGraphAndSchedule()
130 block1->AddInstruction(instr); in TestBuildDependencyGraphAndSchedule()
274 entry->AddInstruction(instr); in TestDependencyGraphOnAliasingArrayAccesses()
Doptimizing_unit_test.h305 return_block_->AddInstruction(new (GetAllocator()) HReturnVoid());
306 exit_block_->AddInstruction(new (GetAllocator()) HExit());
310 entry_block_->AddInstruction(parameter); in AddParameter()
480 exit->AddInstruction(new (GetAllocator()) HExit()); in SetupExit()
515 graph_->GetEntryBlock()->AddInstruction(val);
Dnodes_vector_test.cc48 entry_block_->AddInstruction(int8_parameter_); in BuildGraph()
53 entry_block_->AddInstruction(int16_parameter_); in BuildGraph()
58 entry_block_->AddInstruction(int32_parameter_); in BuildGraph()
Dnodes.cc406 new_block->AddInstruction(new (allocator_) HGoto(successor->GetDexPc())); in SplitCriticalEdge()
503 preheader->AddInstruction(new (allocator_) HGoto(header->GetDexPc())); in TransformLoopToSinglePreheaderFormat()
711 entry_block_->AddInstruction(constant); in InsertConstant()
742 entry_block_->AddInstruction(cached_current_method_); in GetCurrentMethod()
1056 instruction_list->AddInstruction(instruction); in Add()
1059 void HBasicBlock::AddInstruction(HInstruction* instruction) { in AddInstruction() function in art::HBasicBlock
1265 void HInstructionList::AddInstruction(HInstruction* instruction) { in AddInstruction() function in art::HInstructionList
2074 AddInstruction(new (GetGraph()->GetAllocator()) HGoto(new_block->GetDexPc())); in SplitBefore()
2390 predecessor->AddInstruction(new (graph_->GetAllocator()) HGoto(last_instruction->GetDexPc())); in DisconnectAndDelete()
2820 new_block->AddInstruction( in InlineInto()
[all …]

12