Home
last modified time | relevance | path

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

/external/angle/third_party/vulkan-deps/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()
534 unionArray[i].getIConst() == 0x80000000 in fold()
536 : -unionArray[i].getIConst()); in fold()
538 …newConstArray[i].setUConst(static_cast<unsigned int>(-static_cast<int>(unionArray[i].getUConst()))… in fold()
540 case EbtInt8: newConstArray[i].setI8Const(-unionArray[i].getI8Const()); break; in fold()
[all …]
DparseConst.cpp47 : unionArray(cUnion), type(t), in TConstTraverser()
55 TConstUnionArray unionArray; member in glslang::TConstTraverser
115 TConstUnionArray leftUnionArray(unionArray); in visitConstantUnion()
199 bool TIntermediate::parseConstTree(TIntermNode* root, TConstUnionArray unionArray, TOperator constr… in parseConstTree() argument
204 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()
2536 TIntermConstantUnion* TIntermediate::addConstantUnion(const TConstUnionArray& unionArray, const TTy… in addConstantUnion() argument
2538 TIntermConstantUnion* node = new TIntermConstantUnion(unionArray, t); in addConstantUnion()
2548 TConstUnionArray unionArray(1); in addConstantUnion() local
2549 unionArray[0].setI8Const(i8); in addConstantUnion()
2551 return addConstantUnion(unionArray, TType(EbtInt8, EvqConst), loc, literal); in addConstantUnion()
2556 TConstUnionArray unionArray(1); in addConstantUnion() local
2557 unionArray[0].setUConst(u8); in addConstantUnion()
2559 return addConstantUnion(unionArray, TType(EbtUint8, EvqConst), loc, literal); in addConstantUnion()
[all …]
/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()
2536 TIntermConstantUnion* TIntermediate::addConstantUnion(const TConstUnionArray& unionArray, const TTy… in addConstantUnion() argument
2538 TIntermConstantUnion* node = new TIntermConstantUnion(unionArray, t); in addConstantUnion()
2548 TConstUnionArray unionArray(1); in addConstantUnion() local
2549 unionArray[0].setI8Const(i8); in addConstantUnion()
2551 return addConstantUnion(unionArray, TType(EbtInt8, EvqConst), loc, literal); in addConstantUnion()
2556 TConstUnionArray unionArray(1); in addConstantUnion() local
2557 unionArray[0].setUConst(u8); in addConstantUnion()
2559 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/angle/third_party/vulkan-deps/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/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/src/compiler/translator/
DSymbol.h127 const TConstantUnion *getConstPointer() const { return unionArray; } in getConstPointer()
129 void shareConstPointer(const TConstantUnion *constArray) { unionArray = constArray; } in shareConstPointer()
143 unionArray(nullptr)
154 unionArray(nullptr) in TVariable()
159 const TConstantUnion *unionArray; variable
Dglslang.y272 TConstantUnion *unionArray = new TConstantUnion[1]; variable
273 unionArray->setIConst($1.i);
274 $$ = context->addScalarLiteral(unionArray, @1);
277 TConstantUnion *unionArray = new TConstantUnion[1]; variable
278 unionArray->setUConst($1.u);
279 $$ = context->addScalarLiteral(unionArray, @1);
282 TConstantUnion *unionArray = new TConstantUnion[1]; variable
283 unionArray->setFConst($1.f);
284 $$ = context->addScalarLiteral(unionArray, @1);
287 TConstantUnion *unionArray = new TConstantUnion[1]; variable
[all …]
DSymbolTable_ESSL_autogen.cpp25476 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
25477 unionArray[0].setIConst(resources.MaxVertexAttribs); in initializeBuiltInVariables()
25478 static_cast<TVariable *>(m_gl_MaxVertexAttribs)->shareConstPointer(unionArray); in initializeBuiltInVariables()
25485 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
25486 unionArray[0].setIConst(resources.MaxVertexUniformVectors); in initializeBuiltInVariables()
25487 static_cast<TVariable *>(m_gl_MaxVertexUniformVectors)->shareConstPointer(unionArray); in initializeBuiltInVariables()
25494 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
25495 unionArray[0].setIConst(resources.MaxVertexTextureImageUnits); in initializeBuiltInVariables()
25496 static_cast<TVariable *>(m_gl_MaxVertexTextureImageUnits)->shareConstPointer(unionArray); in initializeBuiltInVariables()
25503 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
[all …]
Dglslang_tab_autogen.cpp2389 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local
2390 unionArray->setIConst((yyvsp[0].lex).i); in yyparse()
2391 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse()
2399 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local
2400 unionArray->setUConst((yyvsp[0].lex).u); in yyparse()
2401 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse()
2409 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local
2410 unionArray->setFConst((yyvsp[0].lex).f); in yyparse()
2411 (yyval.interm.intermTypedNode) = context->addScalarLiteral(unionArray, (yylsp[0])); in yyparse()
2419 TConstantUnion *unionArray = new TConstantUnion[1]; in yyparse() local
[all …]
DSymbol.cpp103 unionArray(nullptr) in TVariable()
116 unionArray(nullptr) in TVariable()
DSymbolTable_autogen.cpp39427 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
39428 unionArray[0].setIConst(resources.MaxVertexAttribs); in initializeBuiltInVariables()
39429 static_cast<TVariable *>(m_gl_MaxVertexAttribs)->shareConstPointer(unionArray); in initializeBuiltInVariables()
39436 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
39437 unionArray[0].setIConst(resources.MaxVertexUniformVectors); in initializeBuiltInVariables()
39438 static_cast<TVariable *>(m_gl_MaxVertexUniformVectors)->shareConstPointer(unionArray); in initializeBuiltInVariables()
39445 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
39446 unionArray[0].setIConst(resources.MaxVertexTextureImageUnits); in initializeBuiltInVariables()
39447 static_cast<TVariable *>(m_gl_MaxVertexTextureImageUnits)->shareConstPointer(unionArray); in initializeBuiltInVariables()
39454 TConstantUnion *unionArray = new TConstantUnion[1]; in initializeBuiltInVariables() local
[all …]