/third_party/spirv-tools/source/opt/ |
D | loop_dependence.cpp | 83 node->AsSEConstantNode(); in IsInCorrectFormForGCDTest() 110 if (auto recurrent_node = node->AsSEConstantNode()) { in GetAllTopLevelConstants() 127 if (!node->GetOffset()->AsSEConstantNode() || in AreOffsetsAndCoefficientsConstant() 128 !node->GetOffset()->AsSEConstantNode()) { in AreOffsetsAndCoefficientsConstant() 142 recurrence->GetOffset()->AsSEConstantNode()->FoldToSingleValue(); in CalculateConstantTerm() 155 auto coefficient = recurrence->GetCoefficient()->AsSEConstantNode(); in CalculateGCDFromCoefficients() 561 SEConstantNode* delta_constant = constant_term_delta->AsSEConstantNode(); in StrongSIVTest() 562 SEConstantNode* coefficient_constant = coefficient->AsSEConstantNode(); in StrongSIVTest() 605 int64_t bounds_value = bounds->AsSEConstantNode()->FoldToSingleValue(); in StrongSIVTest() 712 SEConstantNode* delta_constant = delta->AsSEConstantNode(); in WeakZeroSourceSIVTest() [all …]
|
D | scalar_analysis.cpp | 63 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() 539 if (AsSEConstantNode()) { in operator ==() 540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==() 541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==() [all …]
|
D | loop_dependence_helpers.cpp | 140 SEConstantNode* coefficient_constant = coefficient->AsSEConstantNode(); in IsProvablyOutsideOfLoopBounds() 180 ->AsSEConstantNode(); in IsProvablyOutsideOfLoopBounds() 468 if (!induction_step->AsSEConstantNode()) { in IsSupportedLoop() 471 if (!(induction_step->AsSEConstantNode()->FoldToSingleValue() == 1 || in IsSupportedLoop() 472 induction_step->AsSEConstantNode()->FoldToSingleValue() == -1)) { in IsSupportedLoop()
|
D | scalar_analysis_nodes.h | 66 if (AsSEConstantNode()) { in AddChild() 224 SEConstantNode* AsSEConstantNode() override { return this; } in AsSEConstantNode() function 225 const SEConstantNode* AsSEConstantNode() const override { return this; } in AsSEConstantNode() function
|
D | scalar_analysis_simplification.cpp | 187 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()
|
D | loop_peeling.cpp | 656 const SEConstantNode* offset = iv->GetOffset()->AsSEConstantNode(); in ProcessLoop() 657 const SEConstantNode* coeff = iv->GetCoefficient()->AsSEConstantNode(); in ProcessLoop() 1033 if (!flip_iteration.first->AsSEConstantNode()) { in HandleInequality() 1038 flip_iteration.first->AsSEConstantNode()->FoldToSingleValue() + in HandleInequality()
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | loop_dependence.cpp | 83 node->AsSEConstantNode(); in IsInCorrectFormForGCDTest() 110 if (auto recurrent_node = node->AsSEConstantNode()) { in GetAllTopLevelConstants() 127 if (!node->GetOffset()->AsSEConstantNode() || in AreOffsetsAndCoefficientsConstant() 128 !node->GetOffset()->AsSEConstantNode()) { in AreOffsetsAndCoefficientsConstant() 142 recurrence->GetOffset()->AsSEConstantNode()->FoldToSingleValue(); in CalculateConstantTerm() 155 auto coefficient = recurrence->GetCoefficient()->AsSEConstantNode(); in CalculateGCDFromCoefficients() 561 SEConstantNode* delta_constant = constant_term_delta->AsSEConstantNode(); in StrongSIVTest() 562 SEConstantNode* coefficient_constant = coefficient->AsSEConstantNode(); in StrongSIVTest() 605 int64_t bounds_value = bounds->AsSEConstantNode()->FoldToSingleValue(); in StrongSIVTest() 712 SEConstantNode* delta_constant = delta->AsSEConstantNode(); in WeakZeroSourceSIVTest() [all …]
|
D | scalar_analysis.cpp | 63 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() 539 if (AsSEConstantNode()) { in operator ==() 540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==() 541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==() [all …]
|
D | loop_dependence_helpers.cpp | 140 SEConstantNode* coefficient_constant = coefficient->AsSEConstantNode(); in IsProvablyOutsideOfLoopBounds() 180 ->AsSEConstantNode(); in IsProvablyOutsideOfLoopBounds() 468 if (!induction_step->AsSEConstantNode()) { in IsSupportedLoop() 471 if (!(induction_step->AsSEConstantNode()->FoldToSingleValue() == 1 || in IsSupportedLoop() 472 induction_step->AsSEConstantNode()->FoldToSingleValue() == -1)) { in IsSupportedLoop()
|
D | scalar_analysis_nodes.h | 66 if (AsSEConstantNode()) { in AddChild() 224 SEConstantNode* AsSEConstantNode() override { return this; } in AsSEConstantNode() function 225 const SEConstantNode* AsSEConstantNode() const override { return this; } in AsSEConstantNode() function
|
D | scalar_analysis_simplification.cpp | 187 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()
|
D | loop_peeling.cpp | 656 const SEConstantNode* offset = iv->GetOffset()->AsSEConstantNode(); in ProcessLoop() 657 const SEConstantNode* coeff = iv->GetCoefficient()->AsSEConstantNode(); in ProcessLoop() 1033 if (!flip_iteration.first->AsSEConstantNode()) { in HandleInequality() 1038 flip_iteration.first->AsSEConstantNode()->FoldToSingleValue() + in HandleInequality()
|
D | loop_fusion.cpp | 316 if (!induction_step_0->AsSEConstantNode()) { in CheckStep() 328 if (!induction_step_1->AsSEConstantNode()) { in CheckStep()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | loop_dependence.cpp | 83 node->AsSEConstantNode(); in IsInCorrectFormForGCDTest() 110 if (auto recurrent_node = node->AsSEConstantNode()) { in GetAllTopLevelConstants() 127 if (!node->GetOffset()->AsSEConstantNode() || in AreOffsetsAndCoefficientsConstant() 128 !node->GetOffset()->AsSEConstantNode()) { in AreOffsetsAndCoefficientsConstant() 142 recurrence->GetOffset()->AsSEConstantNode()->FoldToSingleValue(); in CalculateConstantTerm() 155 auto coefficient = recurrence->GetCoefficient()->AsSEConstantNode(); in CalculateGCDFromCoefficients() 561 SEConstantNode* delta_constant = constant_term_delta->AsSEConstantNode(); in StrongSIVTest() 562 SEConstantNode* coefficient_constant = coefficient->AsSEConstantNode(); in StrongSIVTest() 605 int64_t bounds_value = bounds->AsSEConstantNode()->FoldToSingleValue(); in StrongSIVTest() 712 SEConstantNode* delta_constant = delta->AsSEConstantNode(); in WeakZeroSourceSIVTest() [all …]
|
D | scalar_analysis.cpp | 63 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() 539 if (AsSEConstantNode()) { in operator ==() 540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==() 541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==() [all …]
|
D | loop_dependence_helpers.cpp | 140 SEConstantNode* coefficient_constant = coefficient->AsSEConstantNode(); in IsProvablyOutsideOfLoopBounds() 180 ->AsSEConstantNode(); in IsProvablyOutsideOfLoopBounds() 468 if (!induction_step->AsSEConstantNode()) { in IsSupportedLoop() 471 if (!(induction_step->AsSEConstantNode()->FoldToSingleValue() == 1 || in IsSupportedLoop() 472 induction_step->AsSEConstantNode()->FoldToSingleValue() == -1)) { in IsSupportedLoop()
|
D | scalar_analysis_nodes.h | 66 if (AsSEConstantNode()) { in AddChild() 224 SEConstantNode* AsSEConstantNode() override { return this; } in AsSEConstantNode() function 225 const SEConstantNode* AsSEConstantNode() const override { return this; } in AsSEConstantNode() function
|
D | scalar_analysis_simplification.cpp | 187 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()
|
D | loop_peeling.cpp | 656 const SEConstantNode* offset = iv->GetOffset()->AsSEConstantNode(); in ProcessLoop() 657 const SEConstantNode* coeff = iv->GetCoefficient()->AsSEConstantNode(); in ProcessLoop() 1033 if (!flip_iteration.first->AsSEConstantNode()) { in HandleInequality() 1038 flip_iteration.first->AsSEConstantNode()->FoldToSingleValue() + in HandleInequality()
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/loop_optimizations/ |
D | dependence_analysis_helpers.cpp | 746 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/ |
D | dependence_analysis_helpers.cpp | 746 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/ |
D | dependence_analysis_helpers.cpp | 746 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/spirv-tools/test/opt/ |
D | scalar_analysis.cpp | 148 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/ |
D | scalar_analysis.cpp | 148 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/ |
D | scalar_analysis.cpp | 148 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 …]
|