/external/deqp-deps/glslang/glslang/MachineIndependent/ |
D | Constant.cpp | 453 const TConstUnionArray& unionArray = getConstArray(); in fold() local 462 sum += unionArray[i].getDConst() * unionArray[i].getDConst(); in fold() 468 newConstArray[i].setDConst(unionArray[i].getDConst() / length); in fold() 477 if (unionArray[i].getBConst()) in fold() 487 if (! unionArray[i].getBConst()) in fold() 531 case EbtFloat: newConstArray[i].setDConst(-unionArray[i].getDConst()); break; in fold() 532 case EbtInt8: newConstArray[i].setI8Const(-unionArray[i].getI8Const()); break; in fold() 533 …Array[i].setU8Const(static_cast<unsigned int>(-static_cast<signed int>(unionArray[i].getU8Const())… in fold() 534 case EbtInt16: newConstArray[i].setI16Const(-unionArray[i].getI16Const()); break; in fold() 535 …rray[i].setU16Const(static_cast<unsigned int>(-static_cast<signed int>(unionArray[i].getU16Const()… in fold() [all …]
|
D | parseConst.cpp | 47 : unionArray(cUnion), type(t), in TConstTraverser() 55 TConstUnionArray unionArray; member in glslang::TConstTraverser 115 TConstUnionArray leftUnionArray(unionArray); in visitConstantUnion() 190 bool TIntermediate::parseConstTree(TIntermNode* root, TConstUnionArray unionArray, TOperator constr… in parseConstTree() argument 195 TConstTraverser it(unionArray, singleConstantParam, constructorType, t); in parseConstTree()
|
D | Intermediate.cpp | 104 TConstUnionArray unionArray; // just a null constant in addSymbol() local 106 return addSymbol(0, "", type, unionArray, nullptr, loc); in addSymbol() 2375 TIntermConstantUnion* TIntermediate::addConstantUnion(const TConstUnionArray& unionArray, const TTy… in addConstantUnion() argument 2377 TIntermConstantUnion* node = new TIntermConstantUnion(unionArray, t); in addConstantUnion() 2387 TConstUnionArray unionArray(1); in addConstantUnion() local 2388 unionArray[0].setI8Const(i8); in addConstantUnion() 2390 return addConstantUnion(unionArray, TType(EbtInt8, EvqConst), loc, literal); in addConstantUnion() 2395 TConstUnionArray unionArray(1); in addConstantUnion() local 2396 unionArray[0].setUConst(u8); in addConstantUnion() 2398 return addConstantUnion(unionArray, TType(EbtUint8, EvqConst), loc, literal); in addConstantUnion() [all …]
|
/external/swiftshader/src/OpenGL/compiler/ |
D | Intermediate.cpp | 727 ConstantUnion* unionArray; in addSwizzle() local 730 unionArray = new ConstantUnion[1]; in addSwizzle() 731 unionArray->setIConst(fields.offsets[i]); in addSwizzle() 732 constIntNode = addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr), line); in addSwizzle() 1267 float ComputeDeterminant(int size, ConstantUnion* unionArray) in ComputeDeterminant() argument 1272 return determinant2(unionArray[0].getFConst(), in ComputeDeterminant() 1273 unionArray[1].getFConst(), in ComputeDeterminant() 1274 unionArray[2].getFConst(), in ComputeDeterminant() 1275 unionArray[3].getFConst()); in ComputeDeterminant() 1277 return determinant3(unionArray[0].getFConst(), in ComputeDeterminant() [all …]
|
D | parseConst.cpp | 26 unionArray(cUnion), in TConstTraverser() 49 ConstantUnion *unionArray; member in TConstTraverser 166 ConstantUnion* leftUnionArray = unionArray; in visitConstantUnion() 239 …rseConstTree(const TSourceLoc& line, TIntermNode* root, ConstantUnion* unionArray, TOperator const… in parseConstTree() argument 244 TConstTraverser it(unionArray, singleConstantParam, constructorType, infoSink, t); in parseConstTree()
|
D | SymbolTable.h | 87 …st TType& t, bool uT = false ) : TSymbol(name), type(t), userType(uT), unionArray(0), arrayInforma… in TSymbol() 99 if (!unionArray) in getConstPointer() 100 unionArray = new ConstantUnion[type.getObjectSize()]; in getConstPointer() 102 return unionArray; in getConstPointer() 105 ConstantUnion* getConstPointer() const { return unionArray; } in getConstPointer() 106 bool isConstant() const { return unionArray != nullptr; } in isConstant() 110 if (unionArray == constArray) in shareConstPointer() 113 delete[] unionArray; in shareConstPointer() 114 unionArray = constArray; in shareConstPointer() 122 ConstantUnion *unionArray; variable
|
D | ParseHelper.cpp | 2160 ConstantUnion* unionArray = new ConstantUnion[type.getObjectSize()]; in foldConstConstructor() local 2162 …returnVal = intermediate.parseConstTree(aggrNode->getLine(), aggrNode, unionArray, aggrNode->getOp… in foldConstConstructor() 2165 …returnVal = intermediate.parseConstTree(aggrNode->getLine(), aggrNode, unionArray, aggrNode->getOp… in foldConstConstructor() 2170 return intermediate.addConstantUnion(unionArray, type, aggrNode->getLine()); in foldConstConstructor() 2188 ConstantUnion *unionArray; in addConstVectorNode() local 2190 unionArray = tempConstantNode->getUnionArrayPointer(); in addConstVectorNode() 2192 if (!unionArray) { in addConstVectorNode() 2215 constArray[i] = unionArray[fields.offsets[i]]; in addConstVectorNode() 2245 ConstantUnion* unionArray = tempConstantNode->getUnionArrayPointer(); in addConstMatrixNode() local 2247 …typedNode = intermediate.addConstantUnion(&unionArray[size*index], tempConstantNode->getType(), li… in addConstMatrixNode() [all …]
|
D | glslang.y | 253 ConstantUnion *unionArray = new ConstantUnion[1]; variable 254 unionArray->setIConst($1.i); 255 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr),… 258 ConstantUnion *unionArray = new ConstantUnion[1]; variable 259 unionArray->setUConst($1.u); 260 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtUInt, EbpUndefined, EvqConstExpr)… 263 ConstantUnion *unionArray = new ConstantUnion[1]; variable 264 unionArray->setFConst($1.f); 265 …$$ = context->intermediate.addConstantUnion(unionArray, TType(EbtFloat, EbpUndefined, EvqConstExpr… 268 ConstantUnion *unionArray = new ConstantUnion[1]; variable [all …]
|
D | glslang_tab.cpp | 2402 ConstantUnion *unionArray = new ConstantUnion[1]; in yyparse() local 2403 unionArray->setIConst((yyvsp[0].lex).i); in yyparse() 2404 …(yyval.interm.intermTypedNode) = context->intermediate.addConstantUnion(unionArray, TType(EbtInt, … in yyparse() 2412 ConstantUnion *unionArray = new ConstantUnion[1]; in yyparse() local 2413 unionArray->setUConst((yyvsp[0].lex).u); in yyparse() 2414 …(yyval.interm.intermTypedNode) = context->intermediate.addConstantUnion(unionArray, TType(EbtUInt,… in yyparse() 2422 ConstantUnion *unionArray = new ConstantUnion[1]; in yyparse() local 2423 unionArray->setFConst((yyvsp[0].lex).f); in yyparse() 2424 …(yyval.interm.intermTypedNode) = context->intermediate.addConstantUnion(unionArray, TType(EbtFloat… in yyparse() 2432 ConstantUnion *unionArray = new ConstantUnion[1]; in yyparse() local [all …]
|
/external/deqp-deps/glslang/glslang/Include/ |
D | ConstantUnion.h | 878 TConstUnionArray() : unionArray(nullptr) { } in POOL_ALLOCATOR_NEW_DELETE() 884 unionArray = nullptr; in TConstUnionArray() 886 unionArray = new TConstUnionVector(size); in TConstUnionArray() 888 TConstUnionArray(const TConstUnionArray& a) : unionArray(a.unionArray) { } in TConstUnionArray() 891 unionArray = new TConstUnionVector(size); in TConstUnionArray() 893 (*unionArray)[i] = a[start + i]; in TConstUnionArray() 899 unionArray = new TConstUnionVector(size, val); in TConstUnionArray() 902 int size() const { return unionArray ? (int)unionArray->size() : 0; } in size() 903 TConstUnion& operator[](size_t index) { return (*unionArray)[index]; } 904 const TConstUnion& operator[](size_t index) const { return (*unionArray)[index]; } [all …]
|