Lines Matching refs:graph
254 HGraph* graph, in GenerateRange() argument
264 graph, in GenerateRange()
277 HGraph* graph, in GenerateTakenTest() argument
286 graph, in GenerateTakenTest()
319 HGraph* graph, in GenerateLastValue() argument
328 graph, in GenerateLastValue()
368 HGraph* graph, in IsUnitStride() argument
380 *offset = graph->GetConstant(info->op_b->type, off_value); in IsUnitStride()
394 HGraph* graph, in GenerateTripCount() argument
402 if (!GenerateCode(trip->op_b, nullptr, graph, block, &taken_test, false, false)) { in GenerateTripCount()
406 if (GenerateCode(trip->op_a, nullptr, graph, block, &trip_expr, false, false)) { in GenerateTripCount()
408 HInstruction* zero = graph->GetConstant(trip->type, 0); in GenerateTripCount()
409 ArenaAllocator* allocator = graph->GetAllocator(); in GenerateTripCount()
973 HGraph* graph, 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()
1040 HGraph* graph, in GenerateLastValuePolynomial() argument
1055 if (GenerateCode(info->op_b, nullptr, graph, block, graph ? &c : nullptr, false, false)) { in GenerateLastValuePolynomial()
1056 if (graph != nullptr) { in GenerateLastValuePolynomial()
1063 Insert(block, new (graph->GetAllocator()) HAdd(type, graph->GetConstant(type, sum), c)); in GenerateLastValuePolynomial()
1073 HGraph* graph, 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()
1086 if (graph != nullptr) { in GenerateLastValueGeometric()
1104 *result = graph->GetConstant(type, 0); in GenerateLastValueGeometric()
1108 ArenaAllocator* allocator = graph->GetAllocator(); in GenerateLastValueGeometric()
1110 e = new (allocator) HMul(type, opa, graph->GetConstant(type, fpow)); in GenerateLastValueGeometric()
1112 e = new (allocator) HDiv(type, opa, graph->GetConstant(type, fpow), kNoDexPc); in GenerateLastValueGeometric()
1125 HGraph* graph, in GenerateLastValueWrapAround() argument
1139 return GenerateCode(info, nullptr, graph, block, result, false, false); in GenerateLastValueWrapAround()
1146 HGraph* graph, 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()
1193 if (graph != nullptr) { in GenerateLastValuePeriodic()
1195 ArenaAllocator* allocator = graph->GetAllocator(); 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()
1206 if (graph != nullptr) { in GenerateLastValuePeriodic()
1207 ArenaAllocator* allocator = graph->GetAllocator(); in GenerateLastValuePeriodic()
1222 HGraph* graph, // when set, code is generated in GenerateCode() argument
1229 if (graph != nullptr && result == nullptr) { in GenerateCode()
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()
1253 if (graph != nullptr) { in GenerateCode()
1257 operation = new (graph->GetAllocator()) HAdd(type, opa, opb); break; in GenerateCode()
1259 operation = new (graph->GetAllocator()) HSub(type, opa, opb); break; in GenerateCode()
1261 operation = new (graph->GetAllocator()) HMul(type, opa, opb, kNoDexPc); break; in GenerateCode()
1263 operation = new (graph->GetAllocator()) HDiv(type, opa, opb, kNoDexPc); break; in GenerateCode()
1265 operation = new (graph->GetAllocator()) HRem(type, opa, opb, kNoDexPc); break; in GenerateCode()
1267 operation = new (graph->GetAllocator()) HXor(type, opa, opb); break; in GenerateCode()
1269 operation = new (graph->GetAllocator()) HLessThan(opa, opb); break; in GenerateCode()
1271 operation = new (graph->GetAllocator()) HLessThanOrEqual(opa, opb); break; in GenerateCode()
1273 operation = new (graph->GetAllocator()) HGreaterThan(opa, opb); break; in GenerateCode()
1275 operation = new (graph->GetAllocator()) HGreaterThanOrEqual(opa, opb); break; in GenerateCode()
1285 if (GenerateCode(info->op_b, trip, graph, block, &opb, in_body, !is_min)) { in GenerateCode()
1286 if (graph != nullptr) { in GenerateCode()
1287 *result = Insert(block, new (graph->GetAllocator()) HNeg(type, opb)); in GenerateCode()
1293 if (graph != nullptr) { in GenerateCode()
1300 return GenerateCode(info->op_a, trip, graph, block, result, in_body, is_min); in GenerateCode()
1306 if (graph != nullptr) { in GenerateCode()
1307 *result = graph->GetConstant(type, 0); in GenerateCode()
1311 if (GenerateCode(info->op_a, trip, graph, block, &opb, in_body, is_min)) { in GenerateCode()
1312 if (graph != nullptr) { in GenerateCode()
1313 ArenaAllocator* allocator = graph->GetAllocator(); 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()
1339 if (graph != nullptr) { in GenerateCode()
1340 ArenaAllocator* allocator = graph->GetAllocator(); in GenerateCode()
1345 oper = new (graph->GetAllocator()) HSub(type, opb, opa); in GenerateCode()
1348 new (allocator) HMul(type, graph->GetConstant(type, stride_value), opa); in GenerateCode()
1368 if (graph != nullptr) { in GenerateCode()
1369 *result = graph->GetConstant(type, extreme.b_constant); in GenerateCode()