Home
last modified time | relevance | path

Searched refs:getAsConstantUnion (Results 1 – 25 of 60) sorted by relevance

123

/external/angle/src/compiler/translator/tree_ops/
DRecordConstantPrecision.cpp82 if (otherOperand->getAsConstantUnion() == nullptr && in operandAffectsParentOperationPrecision()
113 parameter->getAsConstantUnion() == nullptr && in operandAffectsParentOperationPrecision()
DRemovePow.cpp29 return agg->getSequence()->at(1)->getAsConstantUnion() != nullptr; in IsProblematicPow()
DPruneEmptyCases.cpp34 ASSERT(node->getAsConstantUnion() == nullptr); in IsEmptyBlock()
DExpandIntegerPowExpressions.cpp81 const TIntermConstantUnion *constantExponent = sequence->at(1)->getAsConstantUnion(); in visitAggregate()
DPruneNoOps.cpp27 if (node->getAsConstantUnion() != nullptr) in IsNoOp()
/external/angle/third_party/glslang/src/glslang/MachineIndependent/
DParseHelper.cpp393 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 …]
DIntermediate.cpp205 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 …]
Dattribute.cpp91 if (args->getSequence()[argNum]->getAsConstantUnion() == nullptr) in getConstUnion()
94 …const TConstUnion* constVal = &args->getSequence()[argNum]->getAsConstantUnion()->getConstArray()[… in getConstUnion()
DLiveTraverser.h103 TIntermConstantUnion* constant = node->getCondition()->getAsConstantUnion(); in visitSelection()
DConstant.cpp112 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()
DpropagateNoContraction.cpp136 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/
DParseHelper.cpp393 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 …]
DIntermediate.cpp205 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 …]
Dattribute.cpp91 if (args->getSequence()[argNum]->getAsConstantUnion() == nullptr) in getConstUnion()
94 …const TConstUnion* constVal = &args->getSequence()[argNum]->getAsConstantUnion()->getConstArray()[… in getConstUnion()
DLiveTraverser.h103 TIntermConstantUnion* constant = node->getCondition()->getAsConstantUnion(); in visitSelection()
DConstant.cpp112 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()
DpropagateNoContraction.cpp136 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/
DParseHelper.cpp326 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 …]
Dintermediate.h278 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()
DIntermediate.cpp411 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()
DValidateSwitch.cpp115 TIntermConstantUnion *condition = node->getCondition()->getAsConstantUnion(); in visitCase()
/external/angle/src/tests/compiler_tests/
DInitOutputVariables_test.cpp56 if (expectedBinary->getRight()->getAsConstantUnion()->getIConst(0) != in AreLValuesTheSame()
57 candidateBinary->getRight()->getAsConstantUnion()->getIConst(0)) in AreLValuesTheSame()
DRemovePow_test.cpp92 if (mul->getLeft()->getAsConstantUnion() && log != nullptr) in IsPowWorkaround()
/external/angle/src/compiler/translator/
DShaderStorageBlockOutputHLSL.cpp593 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()
DOutputHLSL.cpp215 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()

123