Searched refs:getIConst (Results 1 – 17 of 17) sorted by relevance
227 …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 …]
372 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 …]
197 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()
51 value = intConst->getIConst(); in getInt()
3620 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()
178 …< (*members)[node->getRight()->getAsConstantUnion()->getConstArray()[0].getIConst()].type->getFiel… in visitBinary()1238 snprintf(buf, maxSize, "%d (%s)", constUnion[i].getIConst(), "const int"); in OutputConstantUnion()
40 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
1570 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()
131 int iConst = condition->getIConst(0); in visitCase()
439 …int getIConst(int index) const { return unionArrayPointer ? unionArrayPointer[index].getIConst() :… in getIConst() function
393 out << node->getUnionArrayPointer()[i].getIConst(); in visitConstantUnion()
813 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()
326 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()
876 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()
341 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 …]
122 int getIConst() const { return iConst; } in getIConst() function
1697 … 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);