Lines Matching refs:in_body

153   bool in_body = context->GetBlock() != header;  in GetInductionRange()  local
157 *min_val = GetVal(info, trip, in_body, /* is_min */ true); in GetInductionRange()
158 *max_val = SimplifyMax(GetVal(info, trip, in_body, /* is_min */ false)); in GetInductionRange()
240 bool in_body = true; // no known trip count in IsConstant() local
241 Value v_min = GetVal(info, nullptr, in_body, /* is_min */ true); in IsConstant()
242 Value v_max = GetVal(info, nullptr, in_body, /* is_min */ false); in IsConstant()
300 bool in_body, in GetLinear() argument
322 return GetVal(&cancelled_trip, trip, in_body, is_min); in GetLinear()
337 return SubValue(Value(0), GetVal(&cancelled_trip, trip, in_body, !is_min)); in GetLinear()
344 return AddValue(GetMul(info->op_a, trip, trip, in_body, is_min), in GetLinear()
345 GetVal(info->op_b, trip, in_body, is_min)); in GetLinear()
350 bool in_body, in GetFetch() argument
360 GetFetch(instruction->InputAt(1), trip, in_body, is_min)); in GetFetch()
362 return AddValue(GetFetch(instruction->InputAt(0), trip, in_body, is_min), in GetFetch()
366 return GetFetch(instruction->InputAt(0)->InputAt(0), trip, in_body, is_min); in GetFetch()
371 return GetFetch(instruction->InputAt(0), trip, in_body, is_min); in GetFetch()
375 if (trip != nullptr && in_body && instruction == trip->op_a->fetch) { in GetFetch()
384 bool in_body, in GetVal() argument
392 return AddValue(GetVal(info->op_a, trip, in_body, is_min), in GetVal()
393 GetVal(info->op_b, trip, in_body, is_min)); in GetVal()
395 return SubValue(GetVal(info->op_a, trip, in_body, is_min), in GetVal()
396 GetVal(info->op_b, trip, in_body, !is_min)); in GetVal()
399 GetVal(info->op_b, trip, in_body, !is_min)); in GetVal()
401 return GetMul(info->op_a, info->op_b, trip, in_body, is_min); in GetVal()
403 return GetDiv(info->op_a, info->op_b, trip, in_body, is_min); in GetVal()
405 return GetFetch(info->fetch, trip, in_body, is_min); in GetVal()
408 if (!in_body && !is_min) { // one extra! in GetVal()
409 return GetVal(info->op_a, trip, in_body, is_min); in GetVal()
416 } else if (in_body) { in GetVal()
417 return SubValue(GetVal(info->op_a, trip, in_body, is_min), Value(1)); in GetVal()
425 return CorrectForType(GetLinear(info, trip, in_body, is_min), info->type); in GetVal()
429 return MergeVal(GetVal(info->op_a, trip, in_body, is_min), in GetVal()
430 GetVal(info->op_b, trip, in_body, is_min), is_min); in GetVal()
439 bool in_body, in GetMul() argument
441 Value v1_min = GetVal(info1, trip, in_body, /* is_min */ true); in GetMul()
442 Value v1_max = GetVal(info1, trip, in_body, /* is_min */ false); in GetMul()
443 Value v2_min = GetVal(info2, trip, in_body, /* is_min */ true); in GetMul()
444 Value v2_max = GetVal(info2, trip, in_body, /* is_min */ false); in GetMul()
477 bool in_body, in GetDiv() argument
479 Value v1_min = GetVal(info1, trip, in_body, /* is_min */ true); in GetDiv()
480 Value v1_max = GetVal(info1, trip, in_body, /* is_min */ false); in GetDiv()
481 Value v2_min = GetVal(info2, trip, in_body, /* is_min */ true); in GetDiv()
482 Value v2_max = GetVal(info2, trip, in_body, /* is_min */ false); in GetDiv()
598 bool in_body = true; // inner always in more outer in RefineOuter() local
602 …return AddValue(MulValue(Value(v.a_constant), GetVal(info, trip, in_body, is_min)), Value(v.b_cons… in RefineOuter()
624 bool in_body = context->GetBlock() != header; in GenerateCode() local
640 return GenerateCode(trip->op_b, nullptr, graph, block, taken_test, in_body, /* is_min */ false); in GenerateCode()
643 trip->op_b, nullptr, nullptr, nullptr, nullptr, in_body, /* is_min */ false)) { in GenerateCode()
651 GenerateCode(info, trip, graph, block, lower, in_body, /* is_min */ true)) && in GenerateCode()
653 GenerateCode(info, trip, graph, block, upper, in_body, /* is_min */ false); in GenerateCode()
661 bool in_body, in GenerateCode() argument
681 if (GenerateCode(info->op_a, trip, graph, block, &opa, in_body, is_min) && in GenerateCode()
682 GenerateCode(info->op_b, trip, graph, block, &opb, in_body, is_min)) { in GenerateCode()
705 if (GenerateCode(info->op_a, trip, graph, block, &opa, in_body, is_min) && in GenerateCode()
706 GenerateCode(info->op_b, trip, graph, block, &opb, in_body, !is_min)) { in GenerateCode()
714 if (GenerateCode(info->op_b, trip, graph, block, &opb, in_body, !is_min)) { in GenerateCode()
728 if (!in_body && !is_min) { // one extra! in GenerateCode()
729 return GenerateCode(info->op_a, trip, graph, block, result, in_body, is_min); in GenerateCode()
739 } else if (in_body) { in GenerateCode()
740 if (GenerateCode(info->op_a, trip, graph, block, &opb, in_body, is_min)) { in GenerateCode()
761 if (GenerateCode(trip, trip, graph, block, &opa, in_body, is_min_a) && in GenerateCode()
762 GenerateCode(info->op_b, trip, graph, block, &opb, in_body, is_min)) { in GenerateCode()
782 Value extreme = GetVal(info, trip, in_body, is_min); in GenerateCode()