Home
last modified time | relevance | path

Searched refs:FoldToSingleValue (Results 1 – 24 of 24) sorted by relevance

/third_party/skia/third_party/externals/spirv-tools/test/opt/loop_optimizations/
Ddependence_analysis_helpers.cpp746 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
749 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
753 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
772 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
775 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
779 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
798 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
801 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
805 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
824 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
[all …]
/third_party/spirv-tools/test/opt/loop_optimizations/
Ddependence_analysis_helpers.cpp746 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
749 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
753 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
772 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
775 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
779 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
798 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
801 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
805 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
824 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/loop_optimizations/
Ddependence_analysis_helpers.cpp746 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
749 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
753 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
772 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
775 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
779 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
798 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
801 analysis.GetUpperBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
805 analysis.GetTripCount(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
824 analysis.GetLowerBound(loop)->AsSEConstantNode()->FoldToSingleValue(), in TEST()
[all …]
/third_party/spirv-tools/source/opt/
Dloop_dependence.cpp142 recurrence->GetOffset()->AsSEConstantNode()->FoldToSingleValue(); in CalculateConstantTerm()
146 constant_term += constant->FoldToSingleValue(); in CalculateConstantTerm()
158 running_gcd, std::abs(coefficient->FoldToSingleValue())); in CalculateGCDFromCoefficients()
564 int64_t delta_value = delta_constant->FoldToSingleValue(); in StrongSIVTest()
565 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in StrongSIVTest()
605 int64_t bounds_value = bounds->AsSEConstantNode()->FoldToSingleValue(); in StrongSIVTest()
717 int64_t delta_value = delta_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest()
718 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest()
751 int64_t lower_bound_value = lower_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest()
752 int64_t upper_bound_value = upper_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest()
[all …]
Dscalar_analysis.cpp63 return CreateConstant(-operand->AsSEConstantNode()->FoldToSingleValue()); in CreateNegation()
120 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() * in CreateMultiplyNode()
121 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateMultiplyNode()
137 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() - in CreateSubtraction()
138 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateSubtraction()
149 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() + in CreateAddNode()
150 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateAddNode()
540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==()
541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==()
595 PushToString(node->AsSEConstantNode()->FoldToSingleValue(), &hash_string); in operator ()()
[all …]
Dloop_dependence_helpers.cpp159 if (coefficient_constant->FoldToSingleValue() >= 0) { in IsProvablyOutsideOfLoopBounds()
185 ToString(distance_minus_bounds->FoldToSingleValue())); in IsProvablyOutsideOfLoopBounds()
188 if (distance_minus_bounds->FoldToSingleValue() > 0) { in IsProvablyOutsideOfLoopBounds()
471 if (!(induction_step->AsSEConstantNode()->FoldToSingleValue() == 1 || in IsSupportedLoop()
472 induction_step->AsSEConstantNode()->FoldToSingleValue() == -1)) { in IsSupportedLoop()
Dscalar_analysis_simplification.cpp187 int64_t new_value = constant->AsSEConstantNode()->FoldToSingleValue() * sign; in AccumulatorsFromMultiply()
251 child->AsSEConstantNode()->FoldToSingleValue() * sign; in GatherAccumulatorsFromChildNodes()
440 new_coefficient_simplified->AsSEConstantNode()->FoldToSingleValue() == in FoldRecurrentAddExpressions()
472 coefficient->AsSEConstantNode()->FoldToSingleValue() == 0) { in EliminateZeroCoefficientRecurrents()
Dloop_peeling.cpp658 if (offset && coeff && offset->FoldToSingleValue() == 0 && in ProcessLoop()
659 coeff->FoldToSingleValue() == 1) { in ProcessLoop()
1038 flip_iteration.first->AsSEConstantNode()->FoldToSingleValue() + in HandleInequality()
Dscalar_analysis_nodes.h222 int64_t FoldToSingleValue() const { return literal_value_; } in FoldToSingleValue() function
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dloop_dependence.cpp142 recurrence->GetOffset()->AsSEConstantNode()->FoldToSingleValue(); in CalculateConstantTerm()
146 constant_term += constant->FoldToSingleValue(); in CalculateConstantTerm()
158 running_gcd, std::abs(coefficient->FoldToSingleValue())); in CalculateGCDFromCoefficients()
564 int64_t delta_value = delta_constant->FoldToSingleValue(); in StrongSIVTest()
565 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in StrongSIVTest()
605 int64_t bounds_value = bounds->AsSEConstantNode()->FoldToSingleValue(); in StrongSIVTest()
717 int64_t delta_value = delta_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest()
718 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest()
751 int64_t lower_bound_value = lower_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest()
752 int64_t upper_bound_value = upper_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest()
[all …]
Dscalar_analysis.cpp63 return CreateConstant(-operand->AsSEConstantNode()->FoldToSingleValue()); in CreateNegation()
120 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() * in CreateMultiplyNode()
121 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateMultiplyNode()
137 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() - in CreateSubtraction()
138 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateSubtraction()
149 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() + in CreateAddNode()
150 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateAddNode()
540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==()
541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==()
595 PushToString(node->AsSEConstantNode()->FoldToSingleValue(), &hash_string); in operator ()()
[all …]
Dloop_dependence_helpers.cpp159 if (coefficient_constant->FoldToSingleValue() >= 0) { in IsProvablyOutsideOfLoopBounds()
185 ToString(distance_minus_bounds->FoldToSingleValue())); in IsProvablyOutsideOfLoopBounds()
188 if (distance_minus_bounds->FoldToSingleValue() > 0) { in IsProvablyOutsideOfLoopBounds()
471 if (!(induction_step->AsSEConstantNode()->FoldToSingleValue() == 1 || in IsSupportedLoop()
472 induction_step->AsSEConstantNode()->FoldToSingleValue() == -1)) { in IsSupportedLoop()
Dscalar_analysis_simplification.cpp187 int64_t new_value = constant->AsSEConstantNode()->FoldToSingleValue() * sign; in AccumulatorsFromMultiply()
251 child->AsSEConstantNode()->FoldToSingleValue() * sign; in GatherAccumulatorsFromChildNodes()
440 new_coefficient_simplified->AsSEConstantNode()->FoldToSingleValue() == in FoldRecurrentAddExpressions()
472 coefficient->AsSEConstantNode()->FoldToSingleValue() == 0) { in EliminateZeroCoefficientRecurrents()
Dloop_peeling.cpp658 if (offset && coeff && offset->FoldToSingleValue() == 0 && in ProcessLoop()
659 coeff->FoldToSingleValue() == 1) { in ProcessLoop()
1038 flip_iteration.first->AsSEConstantNode()->FoldToSingleValue() + in HandleInequality()
Dscalar_analysis_nodes.h222 int64_t FoldToSingleValue() const { return literal_value_; } in FoldToSingleValue() function
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dloop_dependence.cpp142 recurrence->GetOffset()->AsSEConstantNode()->FoldToSingleValue(); in CalculateConstantTerm()
146 constant_term += constant->FoldToSingleValue(); in CalculateConstantTerm()
158 running_gcd, std::abs(coefficient->FoldToSingleValue())); in CalculateGCDFromCoefficients()
564 int64_t delta_value = delta_constant->FoldToSingleValue(); in StrongSIVTest()
565 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in StrongSIVTest()
605 int64_t bounds_value = bounds->AsSEConstantNode()->FoldToSingleValue(); in StrongSIVTest()
717 int64_t delta_value = delta_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest()
718 int64_t coefficient_value = coefficient_constant->FoldToSingleValue(); in WeakZeroSourceSIVTest()
751 int64_t lower_bound_value = lower_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest()
752 int64_t upper_bound_value = upper_bound->FoldToSingleValue(); in WeakZeroSourceSIVTest()
[all …]
Dscalar_analysis.cpp63 return CreateConstant(-operand->AsSEConstantNode()->FoldToSingleValue()); in CreateNegation()
120 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() * in CreateMultiplyNode()
121 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateMultiplyNode()
137 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() - in CreateSubtraction()
138 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateSubtraction()
149 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() + in CreateAddNode()
150 operand_2->AsSEConstantNode()->FoldToSingleValue()); in CreateAddNode()
540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==()
541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==()
595 PushToString(node->AsSEConstantNode()->FoldToSingleValue(), &hash_string); in operator ()()
[all …]
Dloop_dependence_helpers.cpp159 if (coefficient_constant->FoldToSingleValue() >= 0) { in IsProvablyOutsideOfLoopBounds()
185 ToString(distance_minus_bounds->FoldToSingleValue())); in IsProvablyOutsideOfLoopBounds()
188 if (distance_minus_bounds->FoldToSingleValue() > 0) { in IsProvablyOutsideOfLoopBounds()
471 if (!(induction_step->AsSEConstantNode()->FoldToSingleValue() == 1 || in IsSupportedLoop()
472 induction_step->AsSEConstantNode()->FoldToSingleValue() == -1)) { in IsSupportedLoop()
Dscalar_analysis_simplification.cpp187 int64_t new_value = constant->AsSEConstantNode()->FoldToSingleValue() * sign; in AccumulatorsFromMultiply()
251 child->AsSEConstantNode()->FoldToSingleValue() * sign; in GatherAccumulatorsFromChildNodes()
440 new_coefficient_simplified->AsSEConstantNode()->FoldToSingleValue() == in FoldRecurrentAddExpressions()
472 coefficient->AsSEConstantNode()->FoldToSingleValue() == 0) { in EliminateZeroCoefficientRecurrents()
Dloop_peeling.cpp658 if (offset && coeff && offset->FoldToSingleValue() == 0 && in ProcessLoop()
659 coeff->FoldToSingleValue() == 1) { in ProcessLoop()
1038 flip_iteration.first->AsSEConstantNode()->FoldToSingleValue() + in HandleInequality()
Dscalar_analysis_nodes.h222 int64_t FoldToSingleValue() const { return literal_value_; } in FoldToSingleValue() function
/third_party/skia/third_party/externals/spirv-tools/test/opt/
Dscalar_analysis.cpp148 EXPECT_EQ(simplified->GetChild(0)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F()
152 EXPECT_EQ(simplified->GetChild(1)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F()
279 EXPECT_EQ(rec->GetCoefficient()->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F()
379 EXPECT_EQ(simplified->AsSEConstantNode()->FoldToSingleValue(), 33u); in TEST_F()
548 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F()
568 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F()
587 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F()
606 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F()
626 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F()
908 EXPECT_EQ(child_1->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F()
[all …]
/third_party/spirv-tools/test/opt/
Dscalar_analysis.cpp148 EXPECT_EQ(simplified->GetChild(0)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F()
152 EXPECT_EQ(simplified->GetChild(1)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F()
279 EXPECT_EQ(rec->GetCoefficient()->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F()
379 EXPECT_EQ(simplified->AsSEConstantNode()->FoldToSingleValue(), 33u); in TEST_F()
548 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F()
568 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F()
587 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F()
606 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F()
626 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F()
908 EXPECT_EQ(child_1->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/
Dscalar_analysis.cpp148 EXPECT_EQ(simplified->GetChild(0)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F()
152 EXPECT_EQ(simplified->GetChild(1)->AsSEConstantNode()->FoldToSingleValue(), in TEST_F()
279 EXPECT_EQ(rec->GetCoefficient()->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F()
379 EXPECT_EQ(simplified->AsSEConstantNode()->FoldToSingleValue(), 33u); in TEST_F()
548 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F()
568 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 1u); in TEST_F()
587 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F()
606 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F()
626 EXPECT_EQ(simplified_node->AsSEConstantNode()->FoldToSingleValue(), 0u); in TEST_F()
908 EXPECT_EQ(child_1->AsSEConstantNode()->FoldToSingleValue(), -1); in TEST_F()
[all …]