Home
last modified time | relevance | path

Searched refs:AsSEConstantNode (Results 1 – 25 of 27) sorted by relevance

12

/third_party/spirv-tools/source/opt/
Dloop_dependence.cpp83 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 …]
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()
539 if (AsSEConstantNode()) { in operator ==()
540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==()
541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==()
[all …]
Dloop_dependence_helpers.cpp140 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()
Dscalar_analysis_nodes.h66 if (AsSEConstantNode()) { in AddChild()
224 SEConstantNode* AsSEConstantNode() override { return this; } in AsSEConstantNode() function
225 const SEConstantNode* AsSEConstantNode() const override { return this; } in AsSEConstantNode() function
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.cpp656 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/
Dloop_dependence.cpp83 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 …]
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()
539 if (AsSEConstantNode()) { in operator ==()
540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==()
541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==()
[all …]
Dloop_dependence_helpers.cpp140 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()
Dscalar_analysis_nodes.h66 if (AsSEConstantNode()) { in AddChild()
224 SEConstantNode* AsSEConstantNode() override { return this; } in AsSEConstantNode() function
225 const SEConstantNode* AsSEConstantNode() const override { return this; } in AsSEConstantNode() function
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.cpp656 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()
Dloop_fusion.cpp316 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/
Dloop_dependence.cpp83 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 …]
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()
539 if (AsSEConstantNode()) { in operator ==()
540 if (AsSEConstantNode()->FoldToSingleValue() != in operator ==()
541 other.AsSEConstantNode()->FoldToSingleValue()) in operator ==()
[all …]
Dloop_dependence_helpers.cpp140 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()
Dscalar_analysis_nodes.h66 if (AsSEConstantNode()) { in AddChild()
224 SEConstantNode* AsSEConstantNode() override { return this; } in AsSEConstantNode() function
225 const SEConstantNode* AsSEConstantNode() const override { return this; } in AsSEConstantNode() function
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.cpp656 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/
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/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 …]

12