Home
last modified time | relevance | path

Searched refs:getAsConstantUnion (Results 1 - 25 of 48) sorted by relevance

12

/third_party/glslang/glslang/MachineIndependent/
H A DSpirvIntrinsics.cpp67 assert(extension->getAsConstantUnion()); in makeSpirvRequirement()
68 spirvReq->extensions.insert(*extension->getAsConstantUnion()->getConstArray()[0].getSConst()); in makeSpirvRequirement()
73 assert(capability->getAsConstantUnion()); in makeSpirvRequirement()
74 spirvReq->capabilities.insert(capability->getAsConstantUnion()->getConstArray()[0].getIConst()); in makeSpirvRequirement()
126 auto extraOperand = arg->getAsConstantUnion(); in insertSpirvExecutionMode()
161 auto extraOperand = arg->getAsConstantUnion(); in setSpirvDecorate()
192 auto extraOperand = arg->getAsConstantUnion(); in setSpirvDecorateString()
212 if (constant->getAsConstantUnion()) { in getSpirvDecorateQualifierString()
213 auto& constArray = constant->getAsConstantUnion()->getConstArray(); in getSpirvDecorateQualifierString()
H A DParseHelper.cpp532 indexValue = index->getAsConstantUnion()->getConstArray()[0].getIConst(); in handleBracketDereference()
679 (! limits.generalConstantMatrixVectorIndexing && base->getAsConstantUnion()) || in handleIndexLimits()
1953 storageClassSemantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1954 semantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1957 storageClassSemantics = (*argp)[2]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1958 semantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1961 storageClassSemantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1962 semantics = (*argp)[5]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1963 storageClassSemantics2 = (*argp)[6]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1964 semantics2 = (*argp)[7]->getAsConstantUnion() in memorySemanticsCheck()
[all...]
H A Dattribute.cpp89 if (args->getSequence()[argNum]->getAsConstantUnion() == nullptr) in getConstUnion()
92 const TConstUnion* constVal = &args->getSequence()[argNum]->getAsConstantUnion()->getConstArray()[0]; in getConstUnion()
H A DIntermediate.cpp206 TIntermConstantUnion *leftTempConstant = node->getLeft()->getAsConstantUnion(); in addBinaryMath()
207 TIntermConstantUnion *rightTempConstant = node->getRight()->getAsConstantUnion(); in addBinaryMath()
448 if (node->getOperand()->getAsConstantUnion()) in addUnaryMath()
449 return node->getOperand()->getAsConstantUnion()->fold(op, node->getType()); in addUnaryMath()
476 if (child->getAsConstantUnion()) { in addBuiltInFunctionCall()
477 TIntermTyped* folded = child->getAsConstantUnion()->fold(op, returnType); in addBuiltInFunctionCall()
842 if (node->getAsConstantUnion()) { in createConversion()
849 TIntermTyped* folded = node->getAsConstantUnion()->fold(newOp, newType); in createConversion()
980 if (node0->getAsConstantUnion()) in addPairConversion()
981 newNode0 = promoteConstantUnion(std::get<0>(promoteTo), node0->getAsConstantUnion()); in addPairConversion()
[all...]
H A DConstant.cpp83 const TIntermConstantUnion *rightNode = rightConstantNode->getAsConstantUnion(); in fold()
986 objectSize = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold()
992 objectSize = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold()
1019 childConstUnions.push_back(children[arg]->getAsConstantUnion()->getConstArray()); in fold()
1211 int numComps = children[0]->getAsConstantUnion()->getType().computeNumComponents(); in fold()
1273 int numCols = children[1]->getAsConstantUnion()->getType().computeNumComponents(); in fold()
1301 if (!(*p)->getAsTyped()->getAsConstantUnion()) in areAllChildConst()
1352 result = addConstantUnion(TConstUnionArray(node->getAsConstantUnion()->getConstArray(), start, size), node->getType(), loc); in foldDereference()
1368 const TConstUnionArray& unionArray = node->getAsConstantUnion()->getConstArray(); in foldSwizzle()
H A DpropagateNoContraction.cpp134 assert(node->getAsConstantUnion() && node->getAsConstantUnion()->isScalar()); in getStructIndexFromConstantUnion()
135 unsigned struct_dereference_index = node->getAsConstantUnion()->getConstArray()[0].getUConst(); in getStructIndexFromConstantUnion()
H A DLiveTraverser.h122 TIntermConstantUnion* constant = node->getCondition()->getAsConstantUnion(); in visitSelection()
H A DparseConst.cpp79 bool flag = node->getSequence().size() == 1 && node->getSequence()[0]->getAsTyped()->getAsConstantUnion(); in visitAggregate()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
H A DSimplifyLoopConditions.cpp211 else if (mLoop.condition->getAsConstantUnion()) in traverseLoop()
265 else if (mLoop.condition->getAsConstantUnion()) in traverseLoop()
370 else if (mLoop.condition->getAsConstantUnion()) in traverseLoop()
H A DPruneEmptyCases.cpp34 ASSERT(node->getAsConstantUnion() == nullptr); in IsEmptyBlock()
H A DPruneNoOps.cpp28 if (node->getAsConstantUnion() != nullptr) in IsNoOp()
H A DRewriteAtomicCounters.cpp123 atomicCounterConstIndex = asBinary->getRight()->getAsConstantUnion()->getIConst(0); in CreateAtomicCounterRef()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
H A 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()) // TOD in addIndexExpression()
[all...]
H A 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->getAsConstantUnion()) { in addSelection()
671 if (cond->getAsConstantUnion() in addSelection()
[all...]
H A Dintermediate.h278 virtual TIntermConstantUnion* getAsConstantUnion() { return 0; } in getAsConstantUnion() function in TIntermNode
447 virtual TIntermConstantUnion* getAsConstantUnion() { return this; } in getAsConstantUnion() function in TIntermConstantUnion
586 if(!node->getAsConstantUnion() || !node->getAsConstantUnion()->getUnionArrayPointer()) in isConstantFoldable()
H A DOutputASM.cpp809 TIntermConstantUnion *element = (*sit)->getAsConstantUnion(); in visitBinary()
1747 TIntermConstantUnion *constantCondition = condition->getAsConstantUnion(); in visitSelection()
2454 if(arg->getAsConstantUnion() && arg->getAsConstantUnion()->getUnionArrayPointer()) in source()
2457 ConstantUnion *constants = arg->getAsConstantUnion()->getUnionArrayPointer(); in source()
2666 int rightIndex = right->getAsConstantUnion()->getIConst(0); in lvalue()
2764 int index = right->getAsConstantUnion()->getIConst(0); in lvalue()
2791 int index = sequence[i]->getAsConstantUnion()->getIConst(0); in lvalue()
2848 if(qualifier == EvqConstExpr && (!operand->getAsConstantUnion() || !operand->getAsConstantUnion() in registerType()
[all...]
H A DValidateSwitch.cpp115 TIntermConstantUnion *condition = node->getCondition()->getAsConstantUnion(); in visitCase()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
H A DShaderStorageBlockOutputHLSL.cpp472 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()
H A DOutputHLSL.cpp218 ancestorBinary->getRight()->getAsConstantUnion(); in needStructMapping()
1409 ancestorBinary->getRight()->getAsConstantUnion(); in ancestorEvaluatesToSamplerInStruct()
1634 const int arrayIndex = node->getRight()->getAsConstantUnion()->getIConst(0); in visitBinary()
1713 const TIntermConstantUnion *index = node->getRight()->getAsConstantUnion(); in visitBinary()
1762 const TIntermConstantUnion *index = node->getRight()->getAsConstantUnion(); in visitBinary()
2076 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct()
2085 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct()
2997 TIntermConstantUnion *constant = assign->getRight()->getAsConstantUnion(); in handleExcessiveLoop()
3019 TIntermConstantUnion *constant = test->getRight()->getAsConstantUnion(); in handleExcessiveLoop()
3041 TIntermConstantUnion *constant = binaryTerminal->getRight()->getAsConstantUnion(); in handleExcessiveLoop()
[all...]
H A DIntermNode.cpp1673 if (mCondition->getAsConstantUnion()) in fold()
1675 if (mCondition->getAsConstantUnion()->getBConst(0)) in fold()
1840 const int fieldIndex = mRight->getAsConstantUnion()->getIConst(0); in promote()
1848 const int fieldIndex = mRight->getAsConstantUnion()->getIConst(0); in promote()
1990 const int fieldIndex = mRight->getAsConstantUnion()->getIConst(0); in derivePrecision()
2109 TIntermConstantUnion *operandConstant = mOperand->getAsConstantUnion();
2159 if (mLeft->getAsConstantUnion() || getType().canReplaceWithConstantUnion()) in fold()
2253 const int index = mRight->getAsConstantUnion()->getIConst(0); in getIndexStructFieldName()
2274 TIntermConstantUnion *operandConstant = mOperand->getAsConstantUnion(); in fold()
2317 if (param->getAsConstantUnion() in fold()
[all...]
H A DValidateSwitch.cpp201 TIntermConstantUnion *condition = node->getCondition()->getAsConstantUnion(); in visitCase()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
H A DExpandIntegerPowExpressions.cpp81 const TIntermConstantUnion *constantExponent = sequence->at(1)->getAsConstantUnion(); in visitAggregate()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
H A DAsNode.h54 return node ? node->getAsConstantUnion() : nullptr; in exec()
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
H A DInitOutputVariables_test.cpp56 if (expectedBinary->getRight()->getAsConstantUnion()->getIConst(0) != in AreLValuesTheSame()
57 candidateBinary->getRight()->getAsConstantUnion()->getIConst(0)) in AreLValuesTheSame()
/third_party/glslang/glslang/Include/
H A Dintermediate.h1144 virtual glslang::TIntermConstantUnion* getAsConstantUnion() { return nullptr; } in getAsConstantUnion() function in TIntermNode
1157 virtual const glslang::TIntermConstantUnion* getAsConstantUnion() const { return nullptr; } in getAsConstantUnion() function in TIntermNode
1378 virtual TIntermConstantUnion* getAsConstantUnion() { return this; } in getAsConstantUnion() function in glslang::TIntermConstantUnion
1379 virtual const TIntermConstantUnion* getAsConstantUnion() const { return this; } in getAsConstantUnion() function in glslang::TIntermConstantUnion

Completed in 42 milliseconds

12