Lines Matching refs:in_body

195   bool in_body = context->GetBlock() != loop->GetHeader();  in GetInductionRange()  local
197 *min_val = SimplifyMin(GetVal(info, trip, in_body, /* is_min= */ true)); in GetInductionRange()
198 *max_val = SimplifyMax(GetVal(info, trip, in_body, /* is_min= */ false), chase_hint); in GetInductionRange()
203 *min_val = SimplifyMin(GetVal(info, trip, in_body, /* is_min= */ true)); in GetInductionRange()
525 bool in_body, in GetLinear() argument
549 return GetVal(&cancelled_trip, trip, in_body, is_min); in GetLinear()
564 return SubValue(Value(0), GetVal(&cancelled_trip, trip, in_body, !is_min)); in GetLinear()
571 return AddValue(GetMul(info->op_a, trip, trip, in_body, is_min), in GetLinear()
572 GetVal(info->op_b, trip, in_body, is_min)); in GetLinear()
577 bool in_body, in GetPolynomial() argument
587 Value c = GetVal(info->op_b, trip, in_body, is_min); in GetPolynomial()
591 Value m = GetVal(trip, trip, in_body, is_min); in GetPolynomial()
603 bool in_body, in GetGeometric() argument
616 Value b = GetVal(info->op_b, trip, in_body, is_min); in GetGeometric()
625 bool in_body, in GetFetch() argument
629 if (chase_hint_ == nullptr && in_body && trip != nullptr && instruction == trip->op_a->fetch) { in GetFetch()
649 GetFetch(instruction->InputAt(1), trip, in_body, is_min)); in GetFetch()
651 return AddValue(GetFetch(instruction->InputAt(0), trip, in_body, is_min), in GetFetch()
658 GetFetch(instruction->InputAt(1), trip, in_body, !is_min)); in GetFetch()
660 return SubValue(GetFetch(instruction->InputAt(0), trip, in_body, is_min), in GetFetch()
668 return GetFetch(instruction->InputAt(0)->AsNewArray()->GetLength(), trip, in_body, is_min); in GetFetch()
675 return GetFetch(instruction->InputAt(0), trip, in_body, is_min); in GetFetch()
700 bool in_body, in GetVal() argument
708 return AddValue(GetVal(info->op_a, trip, in_body, is_min), in GetVal()
709 GetVal(info->op_b, trip, in_body, is_min)); in GetVal()
711 return SubValue(GetVal(info->op_a, trip, in_body, is_min), in GetVal()
712 GetVal(info->op_b, trip, in_body, !is_min)); in GetVal()
715 GetVal(info->op_b, trip, in_body, !is_min)); in GetVal()
717 return GetMul(info->op_a, info->op_b, trip, in_body, is_min); in GetVal()
719 return GetDiv(info->op_a, info->op_b, trip, in_body, is_min); in GetVal()
725 return GetFetch(info->fetch, trip, in_body, is_min); in GetVal()
728 if (!in_body && !is_min) { // one extra! in GetVal()
729 return GetVal(info->op_a, trip, in_body, is_min); in GetVal()
736 } else if (in_body) { in GetVal()
737 return SubValue(GetVal(info->op_a, trip, in_body, is_min), Value(1)); in GetVal()
745 return CorrectForType(GetLinear(info, trip, in_body, is_min), info->type); in GetVal()
747 return GetPolynomial(info, trip, in_body, is_min); in GetVal()
749 return GetGeometric(info, trip, in_body, is_min); in GetVal()
752 return MergeVal(GetVal(info->op_a, trip, in_body, is_min), in GetVal()
753 GetVal(info->op_b, trip, in_body, is_min), is_min); in GetVal()
762 bool in_body, in GetMul() argument
767 return MulRangeAndConstant(value, info2, trip, in_body, is_min); in GetMul()
769 return MulRangeAndConstant(value, info1, trip, in_body, is_min); in GetMul()
772 Value v1_min = GetVal(info1, trip, in_body, /* is_min= */ true); in GetMul()
773 Value v1_max = GetVal(info1, trip, in_body, /* is_min= */ false); in GetMul()
774 Value v2_min = GetVal(info2, trip, in_body, /* is_min= */ true); in GetMul()
775 Value v2_max = GetVal(info2, trip, in_body, /* is_min= */ false); in GetMul()
798 bool in_body, in GetDiv() argument
803 return DivRangeAndConstant(value, info1, trip, in_body, is_min); in GetDiv()
806 Value v1_min = GetVal(info1, trip, in_body, /* is_min= */ true); in GetDiv()
807 Value v1_max = GetVal(info1, trip, in_body, /* is_min= */ false); in GetDiv()
808 Value v2_min = GetVal(info2, trip, in_body, /* is_min= */ true); in GetDiv()
809 Value v2_max = GetVal(info2, trip, in_body, /* is_min= */ false); in GetDiv()
863 bool in_body, in MulRangeAndConstant() argument
867 return MulValue(GetVal(info, trip, in_body, is_min == value >= 0), c); in MulRangeAndConstant()
876 bool in_body, in DivRangeAndConstant() argument
880 return DivValue(GetVal(info, trip, in_body, is_min == value >= 0), c); in DivRangeAndConstant()
970 bool in_body = context->GetBlock() != loop->GetHeader(); in GenerateRangeOrLastValue() local
976 DCHECK(!in_body); in GenerateRangeOrLastValue()
1000 … return GenerateCode(trip->op_b, nullptr, graph, block, taken_test, in_body, /* is_min= */ false); in GenerateRangeOrLastValue()
1003 trip->op_b, nullptr, nullptr, nullptr, nullptr, in_body, /* is_min= */ false)) { in GenerateRangeOrLastValue()
1011 GenerateCode(info, trip, graph, block, lower, in_body, /* is_min= */ true)) && in GenerateRangeOrLastValue()
1013 GenerateCode(info, trip, graph, block, upper, in_body, /* is_min= */ false); in GenerateRangeOrLastValue()
1203 bool in_body, in GenerateCode() argument
1229 if (GenerateCode(info->op_a, trip, graph, block, &opa, in_body, is_min) && in GenerateCode()
1230 GenerateCode(info->op_b, trip, graph, block, &opb, in_body, is_min)) { in GenerateCode()
1263 if (GenerateCode(info->op_b, trip, graph, block, &opb, in_body, !is_min)) { in GenerateCode()
1277 if (!in_body && !is_min) { // one extra! in GenerateCode()
1278 return GenerateCode(info->op_a, trip, graph, block, result, in_body, is_min); in GenerateCode()
1288 } else if (in_body) { in GenerateCode()
1289 if (GenerateCode(info->op_a, trip, graph, block, &opb, in_body, is_min)) { in GenerateCode()
1315 if (GenerateCode(trip, trip, graph, block, &opa, in_body, is_min_a) && in GenerateCode()
1316 GenerateCode(info->op_b, trip, graph, block, &opb, in_body, is_min)) { in GenerateCode()
1344 Value extreme = GetVal(info, trip, in_body, is_min); in GenerateCode()