Lines Matching refs:block
180 static HInstruction* Insert(HBasicBlock* block, HInstruction* instruction) { in Insert() argument
181 DCHECK(block != nullptr); in Insert()
182 DCHECK(block->GetLastInstruction() != nullptr) << block->GetBlockId(); in Insert()
184 block->InsertInstructionBefore(instruction, block->GetLastInstruction()); in Insert()
269 HBasicBlock* block, in GenerateRange() argument
279 block, in GenerateRange()
292 HBasicBlock* block) { in GenerateTakenTest() argument
301 block, in GenerateTakenTest()
334 HBasicBlock* block) { in GenerateLastValue() argument
343 block, in GenerateLastValue()
407 HBasicBlock* block) { in GenerateTripCount() argument
414 if (!GenerateCode(trip->op_b, nullptr, graph, block, &taken_test, false, false)) { in GenerateTripCount()
418 if (GenerateCode(trip->op_a, nullptr, graph, block, &trip_expr, false, false)) { in GenerateTripCount()
422 trip_expr = Insert(block, new (allocator) HSelect(taken_test, trip_expr, zero, kNoDexPc)); in GenerateTripCount()
974 HBasicBlock* block, in GenerateRangeOrLastValue() argument
1008 return GenerateLastValuePolynomial(info, trip, graph, block, lower); in GenerateRangeOrLastValue()
1010 return GenerateLastValueGeometric(info, trip, graph, block, lower); in GenerateRangeOrLastValue()
1012 return GenerateLastValueWrapAround(info, trip, graph, block, lower); in GenerateRangeOrLastValue()
1014 return GenerateLastValuePeriodic(info, trip, graph, block, lower, needs_taken_test); in GenerateRangeOrLastValue()
1022 return GenerateCode(trip->op_b, nullptr, graph, block, taken_test, in_body, /* is_min */ false); in GenerateRangeOrLastValue()
1033 GenerateCode(info, trip, graph, block, lower, in_body, /* is_min */ true)) && in GenerateRangeOrLastValue()
1035 GenerateCode(info, trip, graph, block, upper, in_body, /* is_min */ false); in GenerateRangeOrLastValue()
1041 HBasicBlock* block, in GenerateLastValuePolynomial() argument
1055 if (GenerateCode(info->op_b, nullptr, graph, block, graph ? &c : nullptr, false, false)) { in GenerateLastValuePolynomial()
1063 Insert(block, new (graph->GetAllocator()) HAdd(type, graph->GetConstant(type, sum), c)); in GenerateLastValuePolynomial()
1074 HBasicBlock* block, in GenerateLastValueGeometric() argument
1084 if (GenerateCode(info->op_a, nullptr, graph, block, &opa, false, false) && in GenerateLastValueGeometric()
1085 GenerateCode(info->op_b, nullptr, graph, block, &opb, false, false)) { in GenerateLastValueGeometric()
1114 *result = Insert(block, new (allocator) HAdd(type, Insert(block, e), opb)); in GenerateLastValueGeometric()
1126 HBasicBlock* block, in GenerateLastValueWrapAround() argument
1139 return GenerateCode(info, nullptr, graph, block, result, false, false); in GenerateLastValueWrapAround()
1147 HBasicBlock* block, in GenerateLastValuePeriodic() argument
1181 return GenerateCode(info, nullptr, graph, block, result, false, false); in GenerateLastValuePeriodic()
1189 GenerateCode(info->op_a, nullptr, graph, block, graph ? &x : nullptr, false, false) && in GenerateLastValuePeriodic()
1190 GenerateCode(info->op_b, nullptr, graph, block, graph ? &y : nullptr, false, false) && in GenerateLastValuePeriodic()
1191 GenerateCode(trip->op_a, nullptr, graph, block, graph ? &t : nullptr, false, false)) { in GenerateLastValuePeriodic()
1197 Insert(block, new (allocator) HAnd(type, t, graph->GetConstant(type, 1))); in GenerateLastValuePeriodic()
1199 Insert(block, new (allocator) HEqual(msk, graph->GetConstant(type, 0), kNoDexPc)); in GenerateLastValuePeriodic()
1200 *result = Insert(block, new (graph->GetAllocator()) HSelect(is_even, x, y, kNoDexPc)); in GenerateLastValuePeriodic()
1205 … if (GenerateCode(trip->op_b, nullptr, graph, block, graph ? &is_taken : nullptr, false, false)) { in GenerateLastValuePeriodic()
1208 *result = Insert(block, new (allocator) HSelect(is_taken, *result, x, kNoDexPc)); in GenerateLastValuePeriodic()
1223 HBasicBlock* block, in GenerateCode() argument
1251 if (GenerateCode(info->op_a, trip, graph, block, &opa, in_body, is_min) && in GenerateCode()
1252 GenerateCode(info->op_b, trip, graph, block, &opb, in_body, is_min)) { in GenerateCode()
1279 *result = Insert(block, operation); in GenerateCode()
1285 if (GenerateCode(info->op_b, trip, graph, block, &opb, in_body, !is_min)) { in GenerateCode()
1287 *result = Insert(block, new (graph->GetAllocator()) HNeg(type, opb)); in GenerateCode()
1300 return GenerateCode(info->op_a, trip, graph, block, result, in_body, is_min); in GenerateCode()
1311 if (GenerateCode(info->op_a, trip, graph, block, &opb, in_body, is_min)) { in GenerateCode()
1315 Insert(block, new (allocator) HSub(type, opb, graph->GetConstant(type, 1))); in GenerateCode()
1337 if (GenerateCode(trip, trip, graph, block, &opa, in_body, is_min_a) && in GenerateCode()
1338 GenerateCode(info->op_b, trip, graph, block, &opb, in_body, is_min)) { in GenerateCode()
1349 oper = new (allocator) HAdd(type, Insert(block, mul), opb); in GenerateCode()
1351 *result = Insert(block, oper); in GenerateCode()