/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/ |
D | SpirvIntrinsics.cpp | 60 assert(extension->getAsConstantUnion()); in makeSpirvRequirement() 61 … spirvReq->extensions.insert(*extension->getAsConstantUnion()->getConstArray()[0].getSConst()); in makeSpirvRequirement() 66 assert(capability->getAsConstantUnion()); in makeSpirvRequirement() 67 … spirvReq->capabilities.insert(capability->getAsConstantUnion()->getConstArray()[0].getIConst()); in makeSpirvRequirement() 119 auto extraOperand = arg->getAsConstantUnion(); in insertSpirvExecutionMode() 136 auto extraOperand = arg->getAsConstantUnion(); in insertSpirvExecutionModeId() 154 auto extraOperand = arg->getAsConstantUnion(); in setSpirvDecorate() 170 auto extraOperand = arg->getAsConstantUnion(); in setSpirvDecorateId() 185 auto extraOperand = arg->getAsConstantUnion(); in setSpirvDecorateString()
|
D | ParseHelper.cpp | 503 indexValue = index->getAsConstantUnion()->getConstArray()[0].getIConst(); in handleBracketDereference() 651 (! limits.generalConstantMatrixVectorIndexing && base->getAsConstantUnion()) || in handleIndexLimits() 1910 storageClassSemantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1911 semantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1914 storageClassSemantics = (*argp)[2]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1915 semantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1918 storageClassSemantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1919 semantics = (*argp)[5]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1920 storageClassSemantics2 = (*argp)[6]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1921 semantics2 = (*argp)[7]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() [all …]
|
D | Intermediate.cpp | 206 TIntermConstantUnion *leftTempConstant = node->getLeft()->getAsConstantUnion(); in addBinaryMath() 207 TIntermConstantUnion *rightTempConstant = node->getRight()->getAsConstantUnion(); in addBinaryMath() 446 if (node->getOperand()->getAsConstantUnion()) in addUnaryMath() 447 return node->getOperand()->getAsConstantUnion()->fold(op, node->getType()); in addUnaryMath() 474 if (child->getAsConstantUnion()) { in addBuiltInFunctionCall() 475 TIntermTyped* folded = child->getAsConstantUnion()->fold(op, returnType); in addBuiltInFunctionCall() 853 if (node->getAsConstantUnion()) { in createConversion() 862 TIntermTyped* folded = node->getAsConstantUnion()->fold(newOp, newType); in createConversion() 993 if (node0->getAsConstantUnion()) in addPairConversion() 994 newNode0 = promoteConstantUnion(std::get<0>(promoteTo), node0->getAsConstantUnion()); in addPairConversion() [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 | Constant.cpp | 112 const TIntermConstantUnion *rightNode = rightConstantNode->getAsConstantUnion(); in fold() 1023 objectSize = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1029 objectSize = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1056 childConstUnions.push_back(children[arg]->getAsConstantUnion()->getConstArray()); in fold() 1254 int numComps = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1316 int numCols = children[1]->getAsConstantUnion()->getType().computeNumComponents(); in fold() 1344 if (!(*p)->getAsTyped()->getAsConstantUnion()) in areAllChildConst() 1395 …result = addConstantUnion(TConstUnionArray(node->getAsConstantUnion()->getConstArray(), start, siz… in foldDereference() 1411 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()
|
D | LiveTraverser.h | 122 TIntermConstantUnion* constant = node->getCondition()->getAsConstantUnion(); in visitSelection()
|
/external/angle/src/compiler/translator/tree_ops/gl/ |
D | RecordConstantPrecision.cpp | 82 if (otherOperand->getAsConstantUnion() == nullptr && in operandAffectsParentOperationPrecision() 113 parameter->getAsConstantUnion() == nullptr && in operandAffectsParentOperationPrecision()
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | ParseHelper.cpp | 401 indexValue = index->getAsConstantUnion()->getConstArray()[0].getIConst(); in handleBracketDereference() 549 (! limits.generalConstantMatrixVectorIndexing && base->getAsConstantUnion()) || in handleIndexLimits() 1737 storageClassSemantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1738 semantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1741 storageClassSemantics = (*argp)[2]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1742 semantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1745 storageClassSemantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1746 semantics = (*argp)[5]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1747 storageClassSemantics2 = (*argp)[6]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() 1748 semantics2 = (*argp)[7]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() [all …]
|
D | Intermediate.cpp | 206 TIntermConstantUnion *leftTempConstant = node->getLeft()->getAsConstantUnion(); in addBinaryMath() 207 TIntermConstantUnion *rightTempConstant = node->getRight()->getAsConstantUnion(); in addBinaryMath() 446 if (node->getOperand()->getAsConstantUnion()) in addUnaryMath() 447 return node->getOperand()->getAsConstantUnion()->fold(op, node->getType()); in addUnaryMath() 474 if (child->getAsConstantUnion()) { in addBuiltInFunctionCall() 475 TIntermTyped* folded = child->getAsConstantUnion()->fold(op, returnType); in addBuiltInFunctionCall() 853 if (node->getAsConstantUnion()) { in createConversion() 862 TIntermTyped* folded = node->getAsConstantUnion()->fold(newOp, newType); in createConversion() 993 if (node0->getAsConstantUnion()) in addPairConversion() 994 newNode0 = promoteConstantUnion(std::get<0>(promoteTo), node0->getAsConstantUnion()); in addPairConversion() [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 | 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()
|
D | LiveTraverser.h | 122 TIntermConstantUnion* constant = node->getCondition()->getAsConstantUnion(); in visitSelection()
|
/external/angle/src/compiler/translator/tree_ops/ |
D | SimplifyLoopConditions.cpp | 211 else if (mLoop.condition->getAsConstantUnion()) in traverseLoop() 265 else if (mLoop.condition->getAsConstantUnion()) in traverseLoop() 370 else if (mLoop.condition->getAsConstantUnion()) in traverseLoop()
|
D | PruneEmptyCases.cpp | 34 ASSERT(node->getAsConstantUnion() == nullptr); in IsEmptyBlock()
|
/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 | OutputASM.cpp | 809 TIntermConstantUnion *element = (*sit)->getAsConstantUnion(); in visitBinary() 1747 TIntermConstantUnion *constantCondition = condition->getAsConstantUnion(); in visitSelection() 2456 if(arg->getAsConstantUnion() && arg->getAsConstantUnion()->getUnionArrayPointer()) in source() 2459 ConstantUnion *constants = arg->getAsConstantUnion()->getUnionArrayPointer(); in source() 2668 int rightIndex = right->getAsConstantUnion()->getIConst(0); in lvalue() 2766 int index = right->getAsConstantUnion()->getIConst(0); in lvalue() 2793 int index = sequence[i]->getAsConstantUnion()->getIConst(0); in lvalue() 2850 …if(qualifier == EvqConstExpr && (!operand->getAsConstantUnion() || !operand->getAsConstantUnion()-… in registerType() 2922 …if(qualifier == EvqConstExpr && (!operand->getAsConstantUnion() || !operand->getAsConstantUnion()-… in registerIndex() 3021 else if(expression->getAsConstantUnion()) in cost() [all …]
|
D | ValidateSwitch.cpp | 115 TIntermConstantUnion *condition = node->getCondition()->getAsConstantUnion(); in visitCase()
|
/external/angle/src/compiler/translator/ |
D | ShaderStorageBlockOutputHLSL.cpp | 472 const TIntermConstantUnion *index = binaryNode->getRight()->getAsConstantUnion(); in traverseSSBOAccess() 550 binaryNode->getRight()->getAsConstantUnion()->getIConst(0); in traverseNode() 572 const TIntermConstantUnion *index = binaryNode->getRight()->getAsConstantUnion(); in traverseNode() 582 const TIntermConstantUnion *index = binaryNode->getRight()->getAsConstantUnion(); in traverseNode()
|
D | OutputHLSL.cpp | 218 ancestorBinary->getRight()->getAsConstantUnion(); in needStructMapping() 1402 ancestorBinary->getRight()->getAsConstantUnion(); in ancestorEvaluatesToSamplerInStruct() 1627 const int arrayIndex = node->getRight()->getAsConstantUnion()->getIConst(0); in visitBinary() 1706 const TIntermConstantUnion *index = node->getRight()->getAsConstantUnion(); in visitBinary() 1755 const TIntermConstantUnion *index = node->getRight()->getAsConstantUnion(); in visitBinary() 2069 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct() 2078 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct() 2992 TIntermConstantUnion *constant = assign->getRight()->getAsConstantUnion(); in handleExcessiveLoop() 3014 TIntermConstantUnion *constant = test->getRight()->getAsConstantUnion(); in handleExcessiveLoop() 3036 TIntermConstantUnion *constant = binaryTerminal->getRight()->getAsConstantUnion(); in handleExcessiveLoop()
|
/external/angle/src/compiler/translator/tree_ops/d3d/ |
D | ExpandIntegerPowExpressions.cpp | 81 const TIntermConstantUnion *constantExponent = sequence->at(1)->getAsConstantUnion(); in visitAggregate()
|
/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()
|