/external/angle/src/compiler/translator/tree_ops/ |
D | RecordConstantPrecision.cpp | 82 if (otherOperand->getAsConstantUnion() == nullptr && in operandAffectsParentOperationPrecision() 113 parameter->getAsConstantUnion() == nullptr && in operandAffectsParentOperationPrecision()
|
D | RemovePow.cpp | 29 return agg->getSequence()->at(1)->getAsConstantUnion() != nullptr; in IsProblematicPow()
|
D | PruneEmptyCases.cpp | 34 ASSERT(node->getAsConstantUnion() == nullptr); in IsEmptyBlock()
|
D | ExpandIntegerPowExpressions.cpp | 81 const TIntermConstantUnion *constantExponent = sequence->at(1)->getAsConstantUnion(); in visitAggregate()
|
D | PruneNoOps.cpp | 27 if (node->getAsConstantUnion() != nullptr) in IsNoOp()
|
/external/angle/third_party/glslang/src/glslang/MachineIndependent/ |
D | ParseHelper.cpp | 393 indexValue = index->getAsConstantUnion()->getConstArray()[0].getIConst(); in handleBracketDereference() 531 (! limits.generalConstantMatrixVectorIndexing && base->getAsConstantUnion()) || in handleIndexLimits() 1692 storageClassSemantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1693 semantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1696 storageClassSemantics = (*argp)[2]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1697 semantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1700 storageClassSemantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1701 semantics = (*argp)[5]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1702 storageClassSemantics2 = (*argp)[6]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1703 semantics2 = (*argp)[7]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() [all …]
|
D | Intermediate.cpp | 205 TIntermConstantUnion *leftTempConstant = node->getLeft()->getAsConstantUnion(); in addBinaryMath() 206 TIntermConstantUnion *rightTempConstant = node->getRight()->getAsConstantUnion(); in addBinaryMath() 445 if (node->getOperand()->getAsConstantUnion()) in addUnaryMath() 446 return node->getOperand()->getAsConstantUnion()->fold(op, node->getType()); in addUnaryMath() 473 if (child->getAsConstantUnion()) { in addBuiltInFunctionCall() 474 TIntermTyped* folded = child->getAsConstantUnion()->fold(op, returnType); in addBuiltInFunctionCall() 850 if (node->getAsConstantUnion()) { in createConversion() 859 TIntermTyped* folded = node->getAsConstantUnion()->fold(newOp, newType); in createConversion() 990 if (node0->getAsConstantUnion()) in addConversion() 991 newNode0 = promoteConstantUnion(std::get<0>(promoteTo), node0->getAsConstantUnion()); in addConversion() [all …]
|
D | attribute.cpp | 91 if (args->getSequence()[argNum]->getAsConstantUnion() == nullptr) in getConstUnion() 94 …const TConstUnion* constVal = &args->getSequence()[argNum]->getAsConstantUnion()->getConstArray()[… in getConstUnion()
|
D | LiveTraverser.h | 103 TIntermConstantUnion* constant = node->getCondition()->getAsConstantUnion(); in visitSelection()
|
D | Constant.cpp | 112 const TIntermConstantUnion *rightNode = rightConstantNode->getAsConstantUnion(); in fold() 1024 objectSize = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1030 objectSize = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1057 childConstUnions.push_back(children[arg]->getAsConstantUnion()->getConstArray()); in fold() 1255 int numComps = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1317 int numCols = children[1]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1345 if (!(*p)->getAsTyped()->getAsConstantUnion()) in areAllChildConst() 1396 …result = addConstantUnion(TConstUnionArray(node->getAsConstantUnion()->getConstArray(), start, siz… in foldDereference() 1412 const TConstUnionArray& unionArray = node->getAsConstantUnion()->getConstArray(); in foldSwizzle()
|
D | propagateNoContraction.cpp | 136 assert(node->getAsConstantUnion() && node->getAsConstantUnion()->isScalar()); in getStructIndexFromConstantUnion() 137 unsigned struct_dereference_index = node->getAsConstantUnion()->getConstArray()[0].getUConst(); in getStructIndexFromConstantUnion()
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | ParseHelper.cpp | 393 indexValue = index->getAsConstantUnion()->getConstArray()[0].getIConst(); in handleBracketDereference() 541 (! limits.generalConstantMatrixVectorIndexing && base->getAsConstantUnion()) || in handleIndexLimits() 1713 storageClassSemantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1714 semantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1717 storageClassSemantics = (*argp)[2]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1718 semantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1721 storageClassSemantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1722 semantics = (*argp)[5]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1723 storageClassSemantics2 = (*argp)[6]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1724 semantics2 = (*argp)[7]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() [all …]
|
D | Intermediate.cpp | 205 TIntermConstantUnion *leftTempConstant = node->getLeft()->getAsConstantUnion(); in addBinaryMath() 206 TIntermConstantUnion *rightTempConstant = node->getRight()->getAsConstantUnion(); in addBinaryMath() 445 if (node->getOperand()->getAsConstantUnion()) in addUnaryMath() 446 return node->getOperand()->getAsConstantUnion()->fold(op, node->getType()); in addUnaryMath() 473 if (child->getAsConstantUnion()) { in addBuiltInFunctionCall() 474 TIntermTyped* folded = child->getAsConstantUnion()->fold(op, returnType); in addBuiltInFunctionCall() 850 if (node->getAsConstantUnion()) { in createConversion() 859 TIntermTyped* folded = node->getAsConstantUnion()->fold(newOp, newType); in createConversion() 990 if (node0->getAsConstantUnion()) in addConversion() 991 newNode0 = promoteConstantUnion(std::get<0>(promoteTo), node0->getAsConstantUnion()); in addConversion() [all …]
|
D | attribute.cpp | 91 if (args->getSequence()[argNum]->getAsConstantUnion() == nullptr) in getConstUnion() 94 …const TConstUnion* constVal = &args->getSequence()[argNum]->getAsConstantUnion()->getConstArray()[… in getConstUnion()
|
D | LiveTraverser.h | 103 TIntermConstantUnion* constant = node->getCondition()->getAsConstantUnion(); in visitSelection()
|
D | Constant.cpp | 112 const TIntermConstantUnion *rightNode = rightConstantNode->getAsConstantUnion(); in fold() 1024 objectSize = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1030 objectSize = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1057 childConstUnions.push_back(children[arg]->getAsConstantUnion()->getConstArray()); in fold() 1255 int numComps = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1317 int numCols = children[1]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1345 if (!(*p)->getAsTyped()->getAsConstantUnion()) in areAllChildConst() 1396 …result = addConstantUnion(TConstUnionArray(node->getAsConstantUnion()->getConstArray(), start, siz… in foldDereference() 1412 const TConstUnionArray& unionArray = node->getAsConstantUnion()->getConstArray(); in foldSwizzle()
|
D | propagateNoContraction.cpp | 136 assert(node->getAsConstantUnion() && node->getAsConstantUnion()->isScalar()); in getStructIndexFromConstantUnion() 137 unsigned struct_dereference_index = node->getAsConstantUnion()->getConstArray()[0].getUConst(); in getStructIndexFromConstantUnion()
|
/external/swiftshader/src/OpenGL/compiler/ |
D | ParseHelper.cpp | 326 int value = (*p)->getAsTyped()->getAsConstantUnion()->getIConst(0); in lValueErrorCheck() 808 TIntermConstantUnion* constant = expr->getAsConstantUnion(); in arraySizeErrorCheck() 1297 if (initializer->getAsConstantUnion()) { in executeInitializer() 1298 variable->shareConstPointer(initializer->getAsConstantUnion()->getUnionArrayPointer()); in executeInitializer() 2186 TIntermConstantUnion* tempConstantNode = node->getAsConstantUnion(); in addConstVectorNode() 2233 TIntermConstantUnion* tempConstantNode = node->getAsConstantUnion(); in addConstMatrixNode() 2268 TIntermConstantUnion* tempConstantNode = node->getAsConstantUnion(); in addConstArrayNode() 2307 TIntermConstantUnion *tempConstantNode = node->getAsConstantUnion(); in addConstStruct() 2495 TIntermConstantUnion *indexConstantUnion = indexExpression->getAsConstantUnion(); in addIndexExpression() 2509 …if(baseExpression->getType().getQualifier() == EvqConstExpr && baseExpression->getAsConstantUnion(… in addIndexExpression() [all …]
|
D | intermediate.h | 278 virtual TIntermConstantUnion* getAsConstantUnion() { return 0; } in getAsConstantUnion() function 447 virtual TIntermConstantUnion* getAsConstantUnion() { return this; } in getAsConstantUnion() function 586 if(!node->getAsConstantUnion() || !node->getAsConstantUnion()->getUnionArrayPointer()) in isConstantFoldable()
|
D | Intermediate.cpp | 411 TIntermConstantUnion *leftTempConstant = left->getAsConstantUnion(); in addBinaryMath() 412 TIntermConstantUnion *rightTempConstant = right->getAsConstantUnion(); in addBinaryMath() 504 if (child->getAsConstantUnion()) in addUnaryMath() 505 childTempConstant = child->getAsConstantUnion(); in addUnaryMath() 625 if (cond->getAsTyped() && cond->getAsTyped()->getAsConstantUnion()) { in addSelection() 626 if (cond->getAsConstantUnion()->getBConst(0) == true) in addSelection() 670 …if (cond->getAsConstantUnion() && trueBlock->getAsConstantUnion() && falseBlock->getAsConstantUnio… in addSelection() 671 if (cond->getAsConstantUnion()->getBConst(0)) in addSelection() 1408 TIntermConstantUnion *node = constantNode->getAsConstantUnion(); in fold()
|
D | ValidateSwitch.cpp | 115 TIntermConstantUnion *condition = node->getCondition()->getAsConstantUnion(); in visitCase()
|
/external/angle/src/tests/compiler_tests/ |
D | InitOutputVariables_test.cpp | 56 if (expectedBinary->getRight()->getAsConstantUnion()->getIConst(0) != in AreLValuesTheSame() 57 candidateBinary->getRight()->getAsConstantUnion()->getIConst(0)) in AreLValuesTheSame()
|
D | RemovePow_test.cpp | 92 if (mul->getLeft()->getAsConstantUnion() && log != nullptr) in IsPowWorkaround()
|
/external/angle/src/compiler/translator/ |
D | ShaderStorageBlockOutputHLSL.cpp | 593 const int arrayIndex = node->getRight()->getAsConstantUnion()->getIConst(0); in visitBinary() 628 const TIntermConstantUnion *index = node->getRight()->getAsConstantUnion(); in visitBinary() 648 const TIntermConstantUnion *index = node->getRight()->getAsConstantUnion(); in visitBinary()
|
D | OutputHLSL.cpp | 215 ancestorBinary->getRight()->getAsConstantUnion(); in needStructMapping() 1393 ancestorBinary->getRight()->getAsConstantUnion(); in ancestorEvaluatesToSamplerInStruct() 1618 const int arrayIndex = node->getRight()->getAsConstantUnion()->getIConst(0); in visitBinary() 1659 const TIntermConstantUnion *index = node->getRight()->getAsConstantUnion(); in visitBinary() 1708 const TIntermConstantUnion *index = node->getRight()->getAsConstantUnion(); in visitBinary() 2055 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct() 2064 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct() 2950 TIntermConstantUnion *constant = assign->getRight()->getAsConstantUnion(); in handleExcessiveLoop() 2972 TIntermConstantUnion *constant = test->getRight()->getAsConstantUnion(); in handleExcessiveLoop() 2994 TIntermConstantUnion *constant = binaryTerminal->getRight()->getAsConstantUnion(); in handleExcessiveLoop()
|