Home
last modified time | relevance | path

Searched refs:unionArray (Results 1 – 20 of 20) sorted by relevance

/external/deqp-deps/glslang/glslang/MachineIndependent/
DConstant.cpp455 const TConstUnionArray& unionArray = getConstArray(); in fold() local
464 sum += unionArray[i].getDConst() * unionArray[i].getDConst(); in fold()
470 newConstArray[i].setDConst(unionArray[i].getDConst() / length); in fold()
479 if (unionArray[i].getBConst()) in fold()
489 if (! unionArray[i].getBConst()) in fold()
531 case EbtFloat: newConstArray[i].setDConst(-unionArray[i].getDConst()); break; in fold()
532 case EbtInt: newConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold()
533 …newConstArray[i].setUConst(static_cast<unsigned int>(-static_cast<int>(unionArray[i].getUConst()))… in fold()
535 case EbtInt8: newConstArray[i].setI8Const(-unionArray[i].getI8Const()); break; in fold()
536 …Array[i].setU8Const(static_cast<unsigned int>(-static_cast<signed int>(unionArray[i].getU8Const())… in fold()
[all …]
DparseConst.cpp47 : unionArray(cUnion), type(t), in TConstTraverser()
55 TConstUnionArray unionArray; member in glslang::TConstTraverser
115 TConstUnionArray leftUnionArray(unionArray); in visitConstantUnion()
200 bool TIntermediate::parseConstTree(TIntermNode* root, TConstUnionArray unionArray, TOperator constr… in parseConstTree() argument
205 TConstTraverser it(unionArray, singleConstantParam, constructorType, t); in parseConstTree()
DIntermediate.cpp104 TConstUnionArray unionArray; // just a null constant in addSymbol() local
106 return addSymbol(0, "", type, unionArray, nullptr, loc); in addSymbol()
2564 TIntermConstantUnion* TIntermediate::addConstantUnion(const TConstUnionArray& unionArray, const TTy… in addConstantUnion() argument
2566 TIntermConstantUnion* node = new TIntermConstantUnion(unionArray, t); in addConstantUnion()
2576 TConstUnionArray unionArray(1); in addConstantUnion() local
2577 unionArray[0].setI8Const(i8); in addConstantUnion()
2579 return addConstantUnion(unionArray, TType(EbtInt8, EvqConst), loc, literal); in addConstantUnion()
2584 TConstUnionArray unionArray(1); in addConstantUnion() local
2585 unionArray[0].setUConst(u8); in addConstantUnion()
2587 return addConstantUnion(unionArray, TType(EbtUint8, EvqConst), loc, literal); in addConstantUnion()
[all …]
/external/angle/third_party/glslang/src/glslang/MachineIndependent/
DConstant.cpp455 const TConstUnionArray& unionArray = getConstArray(); in fold() local
464 sum += unionArray[i].getDConst() * unionArray[i].getDConst(); in fold()
470 newConstArray[i].setDConst(unionArray[i].getDConst() / length); in fold()
479 if (unionArray[i].getBConst()) in fold()
489 if (! unionArray[i].getBConst()) in fold()
531 case EbtFloat: newConstArray[i].setDConst(-unionArray[i].getDConst()); break; in fold()
532 case EbtInt: newConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold()
533 …newConstArray[i].setUConst(static_cast<unsigned int>(-static_cast<int>(unionArray[i].getUConst()))… in fold()
535 case EbtInt8: newConstArray[i].setI8Const(-unionArray[i].getI8Const()); break; in fold()
536 …Array[i].setU8Const(static_cast<unsigned int>(-static_cast<signed int>(unionArray[i].getU8Const())… in fold()
[all …]
DparseConst.cpp47 : unionArray(cUnion), type(t), in TConstTraverser()
55 TConstUnionArray unionArray; member in glslang::TConstTraverser
115 TConstUnionArray leftUnionArray(unionArray); in visitConstantUnion()
200 bool TIntermediate::parseConstTree(TIntermNode* root, TConstUnionArray unionArray, TOperator constr… in parseConstTree() argument
205 TConstTraverser it(unionArray, singleConstantParam, constructorType, t); in parseConstTree()
DIntermediate.cpp104 TConstUnionArray unionArray; // just a null constant in addSymbol() local
106 return addSymbol(0, "", type, unionArray, nullptr, loc); in addSymbol()
2539 TIntermConstantUnion* TIntermediate::addConstantUnion(const TConstUnionArray& unionArray, const TTy… in addConstantUnion() argument
2541 TIntermConstantUnion* node = new TIntermConstantUnion(unionArray, t); in addConstantUnion()
2551 TConstUnionArray unionArray(1); in addConstantUnion() local
2552 unionArray[0].setI8Const(i8); in addConstantUnion()
2554 return addConstantUnion(unionArray, TType(EbtInt8, EvqConst), loc, literal); in addConstantUnion()
2559 TConstUnionArray unionArray(1); in addConstantUnion() local
2560 unionArray[0].setUConst(u8); in addConstantUnion()
2562 return addConstantUnion(unionArray, TType(EbtUint8, EvqConst), loc, literal); in addConstantUnion()
[all …]
/external/swiftshader/src/OpenGL/compiler/
DIntermediate.cpp725 ConstantUnion* unionArray; in addSwizzle() local
728 unionArray = new ConstantUnion[1]; in addSwizzle()
729 unionArray->setIConst(fields.offsets[i]); in addSwizzle()
730 constIntNode = addConstantUnion(unionArray, TType(EbtInt, EbpUndefined, EvqConstExpr), line); in addSwizzle()
1265 float ComputeDeterminant(int size, ConstantUnion* unionArray) in ComputeDeterminant() argument
1270 return determinant2(unionArray[0].getFConst(), in ComputeDeterminant()
1271 unionArray[1].getFConst(), in ComputeDeterminant()
1272 unionArray[2].getFConst(), in ComputeDeterminant()
1273 unionArray[3].getFConst()); in ComputeDeterminant()
1275 return determinant3(unionArray[0].getFConst(), in ComputeDeterminant()
[all …]
DparseConst.cpp26 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()
DSymbolTable.h87 …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
DParseHelper.cpp2160 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 …]
Dglslang.y253 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 …]
Dglslang_tab.cpp2402 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/
DConstantUnion.h914 TConstUnionArray() : unionArray(nullptr) { } in POOL_ALLOCATOR_NEW_DELETE()
920 unionArray = nullptr; in TConstUnionArray()
922 unionArray = new TConstUnionVector(size); in TConstUnionArray()
927 unionArray = new TConstUnionVector(size); in TConstUnionArray()
929 (*unionArray)[i] = a[start + i]; in TConstUnionArray()
935 unionArray = new TConstUnionVector(size, val); in TConstUnionArray()
938 int size() const { return unionArray ? (int)unionArray->size() : 0; } in size()
939 TConstUnion& operator[](size_t index) { return (*unionArray)[index]; }
940 const TConstUnion& operator[](size_t index) const { return (*unionArray)[index]; }
944 if (unionArray == rhs.unionArray)
[all …]
/external/angle/third_party/glslang/src/glslang/Include/
DConstantUnion.h914 TConstUnionArray() : unionArray(nullptr) { } in POOL_ALLOCATOR_NEW_DELETE()
920 unionArray = nullptr; in TConstUnionArray()
922 unionArray = new TConstUnionVector(size); in TConstUnionArray()
927 unionArray = new TConstUnionVector(size); in TConstUnionArray()
929 (*unionArray)[i] = a[start + i]; in TConstUnionArray()
935 unionArray = new TConstUnionVector(size, val); in TConstUnionArray()
938 int size() const { return unionArray ? (int)unionArray->size() : 0; } in size()
939 TConstUnion& operator[](size_t index) { return (*unionArray)[index]; }
940 const TConstUnion& operator[](size_t index) const { return (*unionArray)[index]; }
944 if (unionArray == rhs.unionArray)
[all …]
/external/angle/src/compiler/translator/
DSymbol.h91 const TConstantUnion *getConstPointer() const { return unionArray; } in getConstPointer()
93 void shareConstPointer(const TConstantUnion *constArray) { unionArray = constArray; } in shareConstPointer()
103 unionArray(nullptr) in TVariable()
108 const TConstantUnion *unionArray; variable
Dglslang.y266 TConstantUnion *unionArray = new TConstantUnion[1]; variable
267 unionArray->setIConst($1.i);
268 $$ = context->addScalarLiteral(unionArray, @1);
271 TConstantUnion *unionArray = new TConstantUnion[1]; variable
272 unionArray->setUConst($1.u);
273 $$ = context->addScalarLiteral(unionArray, @1);
276 TConstantUnion *unionArray = new TConstantUnion[1]; variable
277 unionArray->setFConst($1.f);
278 $$ = context->addScalarLiteral(unionArray, @1);
281 TConstantUnion *unionArray = new TConstantUnion[1]; variable
[all …]
DSymbolTable_ESSL_autogen.cpp14564 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
14565 unionArray[0].setIConst(resources.MaxVertexAttribs); in initializeBuiltInVariables()
14566 static_cast<TVariable *>(m_gl_MaxVertexAttribs)->shareConstPointer(unionArray); in initializeBuiltInVariables()
14573 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
14574 unionArray[0].setIConst(resources.MaxVertexUniformVectors); in initializeBuiltInVariables()
14575 static_cast<TVariable *>(m_gl_MaxVertexUniformVectors)->shareConstPointer(unionArray); in initializeBuiltInVariables()
14582 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
14583 unionArray[0].setIConst(resources.MaxVertexTextureImageUnits); in initializeBuiltInVariables()
14584 static_cast<TVariable *>(m_gl_MaxVertexTextureImageUnits)->shareConstPointer(unionArray); in initializeBuiltInVariables()
14591 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
[all …]
Dglslang_tab_autogen.cpp2284 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local
2285 unionArray->setIConst((yyvsp[0].lex).i); in yyparse()
2286 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse()
2294 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local
2295 unionArray->setUConst((yyvsp[0].lex).u); in yyparse()
2296 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse()
2304 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local
2305 unionArray->setFConst((yyvsp[0].lex).f); in yyparse()
2306 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse()
2314 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local
[all …]
DSymbolTable_autogen.cpp30707 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
30708 unionArray[0].setIConst(resources.MaxVertexAttribs); in initializeBuiltInVariables()
30709 static_cast<TVariable *>(m_gl_MaxVertexAttribs)->shareConstPointer(unionArray); in initializeBuiltInVariables()
30716 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
30717 unionArray[0].setIConst(resources.MaxVertexUniformVectors); in initializeBuiltInVariables()
30718 static_cast<TVariable *>(m_gl_MaxVertexUniformVectors)->shareConstPointer(unionArray); in initializeBuiltInVariables()
30725 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
30726 unionArray[0].setIConst(resources.MaxVertexTextureImageUnits); in initializeBuiltInVariables()
30727 static_cast<TVariable *>(m_gl_MaxVertexTextureImageUnits)->shareConstPointer(unionArray); in initializeBuiltInVariables()
30734 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
[all …]
DSymbol.cpp85 unionArray(nullptr) in TVariable()