Home
last modified time | relevance | path

Searched refs:operand_1 (Results 1 – 9 of 9) sorted by relevance

/third_party/spirv-tools/source/opt/
Dscalar_analysis.cpp112 SENode* ScalarEvolutionAnalysis::CreateMultiplyNode(SENode* operand_1, in CreateMultiplyNode() argument
115 if (operand_1->IsCantCompute() || operand_2->IsCantCompute()) in CreateMultiplyNode()
118 if (operand_1->GetType() == SENode::Constant && in CreateMultiplyNode()
120 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() * in CreateMultiplyNode()
126 multiply_node->AddChild(operand_1); in CreateMultiplyNode()
132 SENode* ScalarEvolutionAnalysis::CreateSubtraction(SENode* operand_1, in CreateSubtraction() argument
135 if (operand_1->GetType() == SENode::Constant && in CreateSubtraction()
137 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() - in CreateSubtraction()
141 return CreateAddNode(operand_1, CreateNegation(operand_2)); in CreateSubtraction()
144 SENode* ScalarEvolutionAnalysis::CreateAddNode(SENode* operand_1, in CreateAddNode() argument
[all …]
Dscalar_analysis_simplification.cpp158 SENode* operand_1 = multiply->GetChild(0); in AccumulatorsFromMultiply() local
165 if (operand_1->GetType() == SENode::ValueUnknown || in AccumulatorsFromMultiply()
166 operand_1->GetType() == SENode::RecurrentAddExpr) in AccumulatorsFromMultiply()
167 value_unknown = operand_1; in AccumulatorsFromMultiply()
173 if (operand_1->GetType() == SENode::Constant) in AccumulatorsFromMultiply()
174 constant = operand_1; in AccumulatorsFromMultiply()
Dscalar_analysis.h51 SENode* CreateSubtraction(SENode* operand_1, SENode* operand_2);
56 SENode* CreateAddNode(SENode* operand_1, SENode* operand_2);
59 SENode* CreateMultiplyNode(SENode* operand_1, SENode* operand_2);
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dscalar_analysis.cpp112 SENode* ScalarEvolutionAnalysis::CreateMultiplyNode(SENode* operand_1, in CreateMultiplyNode() argument
115 if (operand_1->IsCantCompute() || operand_2->IsCantCompute()) in CreateMultiplyNode()
118 if (operand_1->GetType() == SENode::Constant && in CreateMultiplyNode()
120 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() * in CreateMultiplyNode()
126 multiply_node->AddChild(operand_1); in CreateMultiplyNode()
132 SENode* ScalarEvolutionAnalysis::CreateSubtraction(SENode* operand_1, in CreateSubtraction() argument
135 if (operand_1->GetType() == SENode::Constant && in CreateSubtraction()
137 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() - in CreateSubtraction()
141 return CreateAddNode(operand_1, CreateNegation(operand_2)); in CreateSubtraction()
144 SENode* ScalarEvolutionAnalysis::CreateAddNode(SENode* operand_1, in CreateAddNode() argument
[all …]
Dscalar_analysis_simplification.cpp158 SENode* operand_1 = multiply->GetChild(0); in AccumulatorsFromMultiply() local
165 if (operand_1->GetType() == SENode::ValueUnknown || in AccumulatorsFromMultiply()
166 operand_1->GetType() == SENode::RecurrentAddExpr) in AccumulatorsFromMultiply()
167 value_unknown = operand_1; in AccumulatorsFromMultiply()
173 if (operand_1->GetType() == SENode::Constant) in AccumulatorsFromMultiply()
174 constant = operand_1; in AccumulatorsFromMultiply()
Dscalar_analysis.h51 SENode* CreateSubtraction(SENode* operand_1, SENode* operand_2);
56 SENode* CreateAddNode(SENode* operand_1, SENode* operand_2);
59 SENode* CreateMultiplyNode(SENode* operand_1, SENode* operand_2);
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dscalar_analysis.cpp112 SENode* ScalarEvolutionAnalysis::CreateMultiplyNode(SENode* operand_1, in CreateMultiplyNode() argument
115 if (operand_1->IsCantCompute() || operand_2->IsCantCompute()) in CreateMultiplyNode()
118 if (operand_1->GetType() == SENode::Constant && in CreateMultiplyNode()
120 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() * in CreateMultiplyNode()
126 multiply_node->AddChild(operand_1); in CreateMultiplyNode()
132 SENode* ScalarEvolutionAnalysis::CreateSubtraction(SENode* operand_1, in CreateSubtraction() argument
135 if (operand_1->GetType() == SENode::Constant && in CreateSubtraction()
137 return CreateConstant(operand_1->AsSEConstantNode()->FoldToSingleValue() - in CreateSubtraction()
141 return CreateAddNode(operand_1, CreateNegation(operand_2)); in CreateSubtraction()
144 SENode* ScalarEvolutionAnalysis::CreateAddNode(SENode* operand_1, in CreateAddNode() argument
[all …]
Dscalar_analysis_simplification.cpp158 SENode* operand_1 = multiply->GetChild(0); in AccumulatorsFromMultiply() local
165 if (operand_1->GetType() == SENode::ValueUnknown || in AccumulatorsFromMultiply()
166 operand_1->GetType() == SENode::RecurrentAddExpr) in AccumulatorsFromMultiply()
167 value_unknown = operand_1; in AccumulatorsFromMultiply()
173 if (operand_1->GetType() == SENode::Constant) in AccumulatorsFromMultiply()
174 constant = operand_1; in AccumulatorsFromMultiply()
Dscalar_analysis.h51 SENode* CreateSubtraction(SENode* operand_1, SENode* operand_2);
56 SENode* CreateAddNode(SENode* operand_1, SENode* operand_2);
59 SENode* CreateMultiplyNode(SENode* operand_1, SENode* operand_2);