/external/swiftshader/src/OpenGL/compiler/ |
D | ConstantUnion.h | 41 case EbtUInt: setFConst(static_cast<float>(constant.getUConst())); break; in cast() 51 case EbtUInt: setIConst(static_cast<int>(constant.getUConst())); break; in cast() 61 case EbtUInt: setUConst(static_cast<unsigned int>(constant.getUConst())); break; in cast() 71 case EbtUInt: setBConst(constant.getUConst() != 0); break; in cast() 81 case EbtUInt: setUConst(constant.getUConst()); break; in cast() 100 unsigned int getUConst() const { return uConst; } in getUConst() function
|
D | Intermediate.cpp | 1581 tempConstArray[i].setUConst(unionArray[i].getUConst() / rightUnionArray[i].getUConst()); in fold() 1584 tempConstArray[i].setUConst(unionArray[i].getUConst() % rightUnionArray[i].getUConst()); in fold() 1806 case EbtUInt: tempConstArray[i].setUConst(~unionArray[i].getUConst()); break; in fold() 2009 tempConstArray[i].setFConst(sw::bit_cast<float>(unionArray[i].getUConst())); in fold() 2041 leftUnionArray[i].setFConst(static_cast<float>(node->getUConst(i))); in promoteConstantUnion() 2060 leftUnionArray[i].setIConst(static_cast<int>(node->getUConst(i))); in promoteConstantUnion() 2079 leftUnionArray[i].setUConst(static_cast<unsigned int>(node->getUConst(i))); in promoteConstantUnion() 2098 leftUnionArray[i].setBConst(node->getUConst(i) != 0); in promoteConstantUnion()
|
D | ValidateSwitch.cpp | 144 unsigned int uConst = condition->getUConst(0); in visitCase()
|
D | intermediate.h | 440 …int getUConst(int index) const { return unionArrayPointer ? unionArrayPointer[index].getUConst() :… in getUConst() function
|
D | intermOut.cpp | 397 out << node->getUnionArrayPointer()[i].getUConst(); in visitConstantUnion()
|
/external/angle/src/compiler/translator/ |
D | IntermNode.cpp | 2362 resultArray[i].setUConst(leftArray[i].getUConst() / in FoldBinary() 2363 rightArray[i].getUConst()); in FoldBinary() 2368 resultArray[i].setUConst(leftArray[i].getUConst() % in FoldBinary() 2369 rightArray[i].getUConst()); in FoldBinary() 2637 gl::unpackSnorm2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise() 2656 gl::unpackUnorm2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise() 2675 gl::unpackHalf2x16(operandArray[0].getUConst(), &f1, &f2); in foldUnaryNonComponentWise() 2704 gl::UnpackUnorm4x8(operandArray[0].getUConst(), f); in foldUnaryNonComponentWise() 2716 gl::UnpackSnorm4x8(operandArray[0].getUConst(), f); in foldUnaryNonComponentWise() 2779 -static_cast<int>(operandArray[i].getUConst()))); in foldUnaryComponentWise() [all …]
|
D | ConstantUnion.cpp | 65 (rhs.getType() == EbtUInt && rhs.getUConst() <= 31u); in IsValidShiftOffset() 86 unsigned int TConstantUnion::getUConst() const in getUConst() function in sh::TConstantUnion 119 return getUConst() == 0; in isZero() 146 setFConst(static_cast<float>(constant.getUConst())); in cast() 165 setIConst(static_cast<int>(constant.getUConst())); in cast() 184 setUConst(static_cast<unsigned int>(constant.getUConst())); in cast() 212 setBConst(constant.getUConst() != 0); in cast() 231 setUConst(constant.getUConst()); in cast()
|
D | ConstantUnion.h | 58 unsigned int getUConst() const;
|
D | ValidateClipCullDistance.cpp | 117 idx = constIdx->getUConst(); in visitBinary()
|
D | ValidateSwitch.cpp | 231 unsigned int uConst = condition->getUConst(0); in visitCase()
|
D | IntermNode.h | 341 unsigned int getUConst(size_t index) const in getUConst() function 343 return mUnionArrayPointer ? mUnionArrayPointer[index].getUConst() : 0; in getUConst()
|
D | OutputTree.cpp | 615 mOut << node->getConstantValue()[i].getUConst(); in visitConstantUnion()
|
D | OutputGLSLBase.cpp | 473 out << pConstUnion->getUConst() << "u"; in writeConstantUnion()
|
/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | Constant.cpp | 206 … newConstArray[i].setUConst(leftUnionArray[i].getUConst() / rightUnionArray[i].getUConst()); in fold() 533 …rray[i].setUConst(static_cast<unsigned int>(-static_cast<int>(unionArray[i].getUConst()))); break; in fold() 679 newConstArray[i].setBConst(unionArray[i].getUConst() != 0); break; in fold() 687 newConstArray[i].setIConst(unionArray[i].getUConst()); break; in fold() 703 newConstArray[i].setDConst(unionArray[i].getUConst()); break; in fold() 845 newConstArray[i].setI8Const((signed char)unionArray[i].getUConst()); break; in fold() 847 newConstArray[i].setI16Const((signed short)unionArray[i].getUConst()); break; in fold() 849 newConstArray[i].setI64Const(unionArray[i].getUConst()); break; in fold() 851 newConstArray[i].setU8Const((unsigned char)unionArray[i].getUConst()); break; in fold() 853 newConstArray[i].setU16Const((unsigned short)unionArray[i].getUConst()); break; in fold() [all …]
|
D | propagateNoContraction.cpp | 137 unsigned struct_dereference_index = node->getAsConstantUnion()->getConstArray()[0].getUConst(); in getStructIndexFromConstantUnion()
|
D | ParseHelper.cpp | 2006 offset[0] = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck() 2007 offset[1] = (*argp)[1]->getAsConstantUnion()->getConstArray()[1].getUConst(); in builtInOpCheck() 2008 offset[2] = (*argp)[1]->getAsConstantUnion()->getConstArray()[2].getUConst(); in builtInOpCheck() 2009 offset[3] = (*argp)[1]->getAsConstantUnion()->getConstArray()[3].getUConst(); in builtInOpCheck() 2023 mask[0] = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck() 2024 mask[1] = (*argp)[1]->getAsConstantUnion()->getConstArray()[1].getUConst(); in builtInOpCheck() 2025 mask[2] = (*argp)[1]->getAsConstantUnion()->getConstArray()[2].getUConst(); in builtInOpCheck() 2091 …location = (*argp)[10]->getAsConstantUnion()->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck() 2104 … location = (*argp)[1]->getAsConstantUnion()->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck() 2234 … unsigned vertexIdx = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
|
/external/angle/third_party/vulkan-deps/glslang/src/glslang/MachineIndependent/ |
D | Constant.cpp | 206 … newConstArray[i].setUConst(leftUnionArray[i].getUConst() / rightUnionArray[i].getUConst()); in fold() 538 …rray[i].setUConst(static_cast<unsigned int>(-static_cast<int>(unionArray[i].getUConst()))); break; in fold() 678 newConstArray[i].setBConst(unionArray[i].getUConst() != 0); break; in fold() 686 newConstArray[i].setIConst(unionArray[i].getUConst()); break; in fold() 702 newConstArray[i].setDConst(unionArray[i].getUConst()); break; in fold() 844 newConstArray[i].setI8Const((signed char)unionArray[i].getUConst()); break; in fold() 846 newConstArray[i].setI16Const((signed short)unionArray[i].getUConst()); break; in fold() 848 newConstArray[i].setI64Const(unionArray[i].getUConst()); break; in fold() 850 newConstArray[i].setU8Const((unsigned char)unionArray[i].getUConst()); break; in fold() 852 newConstArray[i].setU16Const((unsigned short)unionArray[i].getUConst()); break; in fold() [all …]
|
D | SpirvIntrinsics.cpp | 214 unsigned value = constant->getConstArray()[0].getUConst(); in getSpirvDecorateQualifierString()
|
D | propagateNoContraction.cpp | 137 unsigned struct_dereference_index = node->getAsConstantUnion()->getConstArray()[0].getUConst(); in getStructIndexFromConstantUnion()
|
D | ParseHelper.cpp | 2185 offset[0] = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck() 2186 offset[1] = (*argp)[1]->getAsConstantUnion()->getConstArray()[1].getUConst(); in builtInOpCheck() 2187 offset[2] = (*argp)[1]->getAsConstantUnion()->getConstArray()[2].getUConst(); in builtInOpCheck() 2188 offset[3] = (*argp)[1]->getAsConstantUnion()->getConstArray()[3].getUConst(); in builtInOpCheck() 2202 mask[0] = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck() 2203 mask[1] = (*argp)[1]->getAsConstantUnion()->getConstArray()[1].getUConst(); in builtInOpCheck() 2204 mask[2] = (*argp)[1]->getAsConstantUnion()->getConstArray()[2].getUConst(); in builtInOpCheck() 2280 …location = (*argp)[10]->getAsConstantUnion()->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck() 2293 … location = (*argp)[1]->getAsConstantUnion()->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck() 2441 … unsigned vertexIdx = (*argp)[1]->getAsConstantUnion()->getConstArray()[0].getUConst(); in builtInOpCheck()
|
/external/angle/src/tests/test_utils/ |
D | ConstantFoldingTest.h | 116 abs(static_cast<int>(node.getUConst() - value)) && in isEqual() 117 static_cast<int>(node.getUConst() - value) != std::numeric_limits<int>::min(); in isEqual()
|
D | ShaderCompileTreeTest.cpp | 87 isZero = (node->getUConst(i) == 0u); in visitConstantUnion()
|
/external/angle/src/compiler/translator/tree_util/ |
D | ReplaceClipCullDistanceVariable.cpp | 133 idx = constIdx->getUConst(); in visitBinary()
|
/external/angle/src/compiler/translator/tree_ops/vulkan/ |
D | ReplaceForShaderFramebufferFetch.cpp | 182 idx = constIdx->getUConst(); in visitBinary()
|
/external/angle/third_party/vulkan-deps/glslang/src/glslang/Include/ |
D | ConstantUnion.h | 123 unsigned int getUConst() const { return uConst; } in getUConst() function
|