Home
last modified time | relevance | path

Searched refs:getIConst (Results 1 – 17 of 17) sorted by relevance

/external/deqp-deps/glslang/glslang/MachineIndependent/
DConstant.cpp227 …else if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == (int)-0x80000000… in fold()
230 … newConstArray[i].setIConst(leftUnionArray[i].getIConst() / rightUnionArray[i].getIConst()); in fold()
291 … if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == INT_MIN) { in fold()
303 … if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == SHRT_MIN) { in fold()
536 case EbtInt: newConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold()
622 newConstArray[i].setIConst(abs(unionArray[i].getIConst())); in fold()
631 newConstArray[i].setIConst(SIGN(unionArray[i].getIConst())); in fold()
683 newConstArray[i].setBConst(unionArray[i].getIConst() != 0); break; in fold()
804 newConstArray[i].setI8Const((signed char)unionArray[i].getIConst()); break; in fold()
806 newConstArray[i].setI16Const((signed short)unionArray[i].getIConst()); break; in fold()
[all …]
DParseHelper.cpp372 indexValue = index->getAsConstantUnion()->getConstArray()[0].getIConst(); in handleBracketDereference()
1546 storageClassSemantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1547 semantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1550 storageClassSemantics = (*argp)[2]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1551 semantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1554 storageClassSemantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1555 semantics = (*argp)[5]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1556 storageClassSemantics2 = (*argp)[6]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1557 semantics2 = (*argp)[7]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1568 storageClassSemantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
[all …]
Dreflection.cpp197 index = visitNode->getRight()->getAsConstantUnion()->getConstArray()[0].getIConst(); in blowUpActiveAggregate()
202 index = visitNode->getRight()->getAsConstantUnion()->getConstArray()[0].getIConst(); in blowUpActiveAggregate()
334 … arraySize = topNode->getRight()->getAsConstantUnion()->getConstArray()[0].getIConst() + 1; in addDereferencedUniform()
Dattribute.cpp51 value = intConst->getIConst(); in getInt()
DIntermediate.cpp3620 leftUnionArray[i].setDConst(static_cast<double>(rightUnionArray[i].getIConst())); in promoteConstantUnion()
3646 leftUnionArray[i].setDConst(static_cast<double>(rightUnionArray[i].getIConst())); in promoteConstantUnion()
3672 leftUnionArray[i].setDConst(static_cast<double>(rightUnionArray[i].getIConst())); in promoteConstantUnion()
3724 … leftUnionArray[i].setUConst(static_cast<unsigned int>(rightUnionArray[i].getIConst())); in promoteConstantUnion()
3750 leftUnionArray[i].setBConst(rightUnionArray[i].getIConst() != 0); in promoteConstantUnion()
3776 … leftUnionArray[i].setI64Const(static_cast<long long>(rightUnionArray[i].getIConst())); in promoteConstantUnion()
3802 … leftUnionArray[i].setU64Const(static_cast<unsigned long long>(rightUnionArray[i].getIConst())); in promoteConstantUnion()
DintermOut.cpp178 …< (*members)[node->getRight()->getAsConstantUnion()->getConstArray()[0].getIConst()].type->getFiel… in visitBinary()
1238 snprintf(buf, maxSize, "%d (%s)", constUnion[i].getIConst(), "const int"); in OutputConstantUnion()
/external/swiftshader/src/OpenGL/compiler/
DConstantUnion.h40 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
DIntermediate.cpp1570 tempConstArray[i].setIConst(unionArray[i].getIConst() / rightUnionArray[i].getIConst()); in fold()
1573 tempConstArray[i].setIConst(unionArray[i].getIConst() % rightUnionArray[i].getIConst()); in fold()
1791 case EbtInt: tempConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold()
1807 case EbtInt: tempConstArray[i].setIConst(~unionArray[i].getIConst()); break; in fold()
2000 tempConstArray[i].setFConst(sw::bit_cast<float>(unionArray[i].getIConst())); in fold()
2040 leftUnionArray[i].setFConst(static_cast<float>(node->getIConst(i))); in promoteConstantUnion()
2059 leftUnionArray[i].setIConst(static_cast<int>(node->getIConst(i))); in promoteConstantUnion()
2078 leftUnionArray[i].setUConst(static_cast<unsigned int>(node->getIConst(i))); in promoteConstantUnion()
2097 leftUnionArray[i].setBConst(node->getIConst(i) != 0); in promoteConstantUnion()
DValidateSwitch.cpp131 int iConst = condition->getIConst(0); in visitCase()
Dintermediate.h439 …int getIConst(int index) const { return unionArrayPointer ? unionArrayPointer[index].getIConst() :… in getIConst() function
DintermOut.cpp393 out << node->getUnionArrayPointer()[i].getIConst(); in visitConstantUnion()
DOutputASM.cpp813 int i = element->getUnionArrayPointer()[0].getIConst(); in visitBinary()
2649 int rightIndex = right->getAsConstantUnion()->getIConst(0); in lvalue()
2747 int index = right->getAsConstantUnion()->getIConst(0); in lvalue()
2774 int index = sequence[i]->getAsConstantUnion()->getIConst(0); in lvalue()
3389 int index = right->getAsConstantUnion() ? right->getAsConstantUnion()->getIConst(0) : 0; in samplerRegister()
3784 initial = constant->getUnionArrayPointer()[0].getIConst(); in LoopInfo()
3807 limit = constant->getUnionArrayPointer()[0].getIConst(); in LoopInfo()
3832 int value = constant->getUnionArrayPointer()[0].getIConst(); in LoopInfo()
DParseHelper.cpp326 int value = (*p)->getAsTyped()->getAsConstantUnion()->getIConst(0); in lValueErrorCheck()
831 size = constant->getIConst(0); in arraySizeErrorCheck()
911 int fragDataValue = static_cast<TVariable*>(fragData)->getConstPointer()[0].getIConst(); in arraySetMaxSize()
1018 if(type.getArraySize() != maxDrawBuffers->getConstPointer()->getIConst()) in declareVariable()
2499 int index = indexConstantUnion->getIConst(0); in addIndexExpression()
/external/deqp-deps/glslang/hlsl/
DhlslGrammar.cpp876 const int vecSizeI = vecSize->getAsConstantUnion()->getConstArray()[0].getIConst(); in acceptVectorTemplateType()
945 rows->getAsConstantUnion()->getConstArray()[0].getIConst(), in acceptMatrixTemplateType()
946 cols->getAsConstantUnion()->getConstArray()[0].getIConst()); in acceptMatrixTemplateType()
1030 arraySizes->addInnerSize(size->getAsConstantUnion()->getConstArray()[0].getIConst()); in acceptTessellationPatchTemplateType()
DhlslParseHelper.cpp341 compIsSet[asConst->getConstArray()[0].getIConst()] = true; in handleLvalue()
345 compIsSet[seq[comp]->getAsConstantUnion()->getConstArray()[0].getIConst()] = true; in handleLvalue()
813 indexValue = index->getAsConstantUnion()->getConstArray()[0].getIConst(); in handleBracketDereference()
1747 …ntermediate.setLocalSize(lid, sequence[lid]->getAsConstantUnion()->getConstArray()[0].getIConst()); in handleEntryPointAttributes()
5867 int value = aggArgs[compArg]->getAsConstantUnion()->getConstArray()[0].getIConst(); in builtInOpCheck()
5907 int offset = aggArgs[arg]->getAsConstantUnion()->getConstArray()[c].getIConst(); in builtInOpCheck()
6585 sizePair.size = constant->getConstArray()[0].getIConst(); in arraySizeCheck()
6594 sizePair.size = symbol->getConstArray()[0].getIConst(); in arraySizeCheck()
7017 value = constUnion->getConstArray()[0].getIConst(); in setLayoutQualifier()
9076 prevExpression->getAsConstantUnion()->getConstArray()[0].getIConst() == in wrapupSwitchSubsequence()
[all …]
/external/deqp-deps/glslang/glslang/Include/
DConstantUnion.h122 int getIConst() const { return iConst; } in getIConst() function
/external/deqp-deps/glslang/SPIRV/
DGlslangToSpv.cpp1697 … const int glslangIndex = node->getRight()->getAsConstantUnion()->getConstArray()[0].getIConst(); in visitBinary()
2684 …k(child->getAsBranchNode()->getExpression()->getAsConstantUnion()->getConstArray()[0].getIConst()); in visitSwitch()
2952 swizzle.push_back(swizzleSequence[i]->getAsConstantUnion()->getConstArray()[0].getIConst()); in convertSwizzle()
7510 … spvConsts.push_back(builder.makeIntConstant(zero ? 0 : consts[nextConst].getIConst()));
7557 … scalar = builder.makeIntConstant(zero ? 0 : consts[nextConst].getIConst(), specConstant);