/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/ |
D | Constant.cpp | 196 …else if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == (int)-0x80000000… in fold() 199 … newConstArray[i].setIConst(leftUnionArray[i].getIConst() / rightUnionArray[i].getIConst()); in fold() 294 … if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == INT_MIN) { in fold() 305 … if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == SHRT_MIN) { in fold() 534 unionArray[i].getIConst() == 0x80000000 in fold() 536 : -unionArray[i].getIConst()); in fold() 623 newConstArray[i].setIConst(abs(unionArray[i].getIConst())); in fold() 632 newConstArray[i].setIConst(SIGN(unionArray[i].getIConst())); in fold() 676 newConstArray[i].setBConst(unionArray[i].getIConst() != 0); break; in fold() 684 newConstArray[i].setUConst(unionArray[i].getIConst()); break; in fold() [all …]
|
D | SpirvIntrinsics.cpp | 67 … spirvReq->capabilities.insert(capability->getAsConstantUnion()->getConstArray()[0].getIConst()); in makeSpirvRequirement() 210 int value = constant->getConstArray()[0].getIConst(); in getSpirvDecorateQualifierString()
|
D | ParseHelper.cpp | 503 indexValue = index->getAsConstantUnion()->getConstArray()[0].getIConst(); in handleBracketDereference() 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() 1932 …torageClassSemantics = (*argp)[isMS ? 5 : 4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() [all …]
|
D | attribute.cpp | 53 value = intConst->getIConst(); in getInt()
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | Constant.cpp | 196 …else if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == (int)-0x80000000… in fold() 199 … newConstArray[i].setIConst(leftUnionArray[i].getIConst() / rightUnionArray[i].getIConst()); in fold() 294 … if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == INT_MIN) { in fold() 305 … if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == SHRT_MIN) { in fold() 532 case EbtInt: newConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold() 624 newConstArray[i].setIConst(abs(unionArray[i].getIConst())); in fold() 633 newConstArray[i].setIConst(SIGN(unionArray[i].getIConst())); in fold() 677 newConstArray[i].setBConst(unionArray[i].getIConst() != 0); break; in fold() 685 newConstArray[i].setUConst(unionArray[i].getIConst()); break; in fold() 699 newConstArray[i].setDConst(unionArray[i].getIConst()); break; in fold() [all …]
|
D | ParseHelper.cpp | 401 indexValue = index->getAsConstantUnion()->getConstArray()[0].getIConst(); in handleBracketDereference() 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() 1759 …torageClassSemantics = (*argp)[isMS ? 5 : 4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck() [all …]
|
D | attribute.cpp | 53 value = intConst->getIConst(); in getInt()
|
/external/angle/src/compiler/translator/ |
D | ConstantUnion.cpp | 64 return (rhs.getType() == EbtInt && (rhs.getIConst() >= 0 && rhs.getIConst() <= 31)) || in IsValidShiftOffset() 80 int TConstantUnion::getIConst() const in getIConst() function in sh::TConstantUnion 117 return getIConst() == 0; in isZero() 143 setFConst(static_cast<float>(constant.getIConst())); in cast() 162 setIConst(static_cast<int>(constant.getIConst())); in cast() 181 setUConst(static_cast<unsigned int>(constant.getIConst())); in cast() 209 setBConst(constant.getIConst() != 0); in cast() 228 setIConst(constant.getIConst()); in cast() 603 returnValue.setIConst(returnValue.getIConst() | extendedSignBit); in rshift()
|
D | IntermNode.cpp | 1667 const int i = mRight->getAsConstantUnion()->getIConst(0); in promote() 1675 const int i = mRight->getAsConstantUnion()->getIConst(0); in promote() 1931 size_t index = static_cast<size_t>(rightConstant->getIConst()); in fold() 2012 int index = mRight->getConstantValue()->getIConst(); in getConstantValue() 2040 const int index = mRight->getAsConstantUnion()->getIConst(0); in getIndexStructFieldName() 2307 int lhs = leftArray[i].getIConst(); in FoldBinary() 2308 int divisor = rightArray[i].getIConst(); in FoldBinary() 2768 resultArray[i].setIConst(-operandArray[i].getIConst()); in foldUnaryComponentWise() 2795 resultArray[i].setIConst(operandArray[i].getIConst()); in foldUnaryComponentWise() 2823 resultArray[i].setIConst(~operandArray[i].getIConst()); in foldUnaryComponentWise() [all …]
|
D | ShaderStorageBlockOutputHLSL.cpp | 473 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in traverseSSBOAccess() 550 binaryNode->getRight()->getAsConstantUnion()->getIConst(0); in traverseNode() 573 const TField *field = structure->fields()[index->getIConst(0)]; in traverseNode() 583 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in traverseNode()
|
D | OutputTree.cpp | 289 const TField *field = fields[constantUnion->getIConst()]; in visitBinary() 291 mOut << constantUnion->getIConst() << " (field '" << field->name() << "')"; in visitBinary() 611 mOut << node->getConstantValue()[i].getIConst(); in visitConstantUnion()
|
D | OutputHLSL.cpp | 219 const TField *field = structure->fields()[index->getIConst(0)]; in needStructMapping() 270 out << constUnion->getIConst(); in writeSingleConstant() 1403 const TField *field = structure->fields()[index->getIConst(0)]; in ancestorEvaluatesToSamplerInStruct() 1627 const int arrayIndex = node->getRight()->getAsConstantUnion()->getIConst(0); in visitBinary() 1707 const TField *field = structure->fields()[index->getIConst(0)]; in visitBinary() 1756 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in visitBinary() 2069 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct() 2078 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct() 2999 initial = constant->getIConst(0); in handleExcessiveLoop() 3021 limit = constant->getIConst(0); in handleExcessiveLoop() [all …]
|
D | ConstantUnion.h | 57 int getIConst() const;
|
D | ValidateClipCullDistance.cpp | 114 idx = constIdx->getIConst(); in visitBinary()
|
D | ValidateSwitch.cpp | 218 int iConst = condition->getIConst(0); in visitCase()
|
D | OutputGLSLBase.cpp | 470 out << pConstUnion->getIConst(); in writeConstantUnion() 611 const TField *field = structure->fields()[index->getIConst(0)]; in visitBinary() 624 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in visitBinary()
|
/external/swiftshader/src/OpenGL/compiler/ |
D | ConstantUnion.h | 40 case EbtInt: setFConst(static_cast<float>(constant.getIConst())); break; in cast() 50 case EbtInt: setIConst(static_cast<int>(constant.getIConst())); break; in cast() 60 case EbtInt: setUConst(static_cast<unsigned int>(constant.getIConst())); break; in cast() 70 case EbtInt: setBConst(constant.getIConst() != 0); break; in cast() 80 case EbtInt: setIConst(constant.getIConst()); break; in cast() 99 int getIConst() const { return iConst; } in getIConst() function
|
D | Intermediate.cpp | 1568 tempConstArray[i].setIConst(unionArray[i].getIConst() / rightUnionArray[i].getIConst()); in fold() 1571 tempConstArray[i].setIConst(unionArray[i].getIConst() % rightUnionArray[i].getIConst()); in fold() 1789 case EbtInt: tempConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold() 1805 case EbtInt: tempConstArray[i].setIConst(~unionArray[i].getIConst()); break; in fold() 1998 tempConstArray[i].setFConst(sw::bit_cast<float>(unionArray[i].getIConst())); in fold() 2038 leftUnionArray[i].setFConst(static_cast<float>(node->getIConst(i))); in promoteConstantUnion() 2057 leftUnionArray[i].setIConst(static_cast<int>(node->getIConst(i))); in promoteConstantUnion() 2076 leftUnionArray[i].setUConst(static_cast<unsigned int>(node->getIConst(i))); in promoteConstantUnion() 2095 leftUnionArray[i].setBConst(node->getIConst(i) != 0); in promoteConstantUnion()
|
D | ValidateSwitch.cpp | 131 int iConst = condition->getIConst(0); in visitCase()
|
D | intermediate.h | 439 …int getIConst(int index) const { return unionArrayPointer ? unionArrayPointer[index].getIConst() :… in getIConst() function
|
/external/angle/src/tests/test_utils/ |
D | ConstantFoldingTest.h | 104 return mFaultTolerance >= abs(node.getIConst() - value) && in isEqual() 105 (node.getIConst() - value) != std::numeric_limits<int>::min(); in isEqual()
|
D | ShaderCompileTreeTest.cpp | 84 isZero = (node->getIConst(i) == 0); in visitConstantUnion()
|
/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()
|
/external/angle/src/compiler/translator/tree_ops/ |
D | RewriteAtomicCounters.cpp | 121 atomicCounterConstIndex = asBinary->getRight()->getAsConstantUnion()->getIConst(0); in CreateAtomicCounterRef()
|
/external/angle/src/compiler/translator/tree_ops/vulkan/ |
D | RewriteArrayOfArrayOfOpaqueUniforms.cpp | 173 node->getRight()->getAsConstantUnion()->getIConst(0) * subArraySize; in RewriteArrayOfArraySubscriptExpression()
|