Home
last modified time | relevance | path

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

123

/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/
DConstantUnion.cpp64 return (rhs.getType() == EbtInt && (rhs.getIConst() >= 0 && rhs.getIConst() <= 31)) || in IsValidShiftOffset()
76 int TConstantUnion::getIConst() const in getIConst() function in sh::TConstantUnion
113 return getIConst() == 0; in isZero()
139 setFConst(static_cast<float>(constant.getIConst())); in cast()
158 setIConst(static_cast<int>(constant.getIConst())); in cast()
177 setUConst(static_cast<unsigned int>(constant.getIConst())); in cast()
205 setBConst(constant.getIConst() != 0); in cast()
224 setIConst(constant.getIConst()); in cast()
599 returnValue.setIConst(returnValue.getIConst() | extendedSignBit); in rshift()
DIntermNode.cpp1542 const int i = mRight->getAsConstantUnion()->getIConst(0); in promote()
1550 const int i = mRight->getAsConstantUnion()->getIConst(0); in promote()
1793 size_t index = static_cast<size_t>(rightConstant->getIConst()); in fold()
1874 int index = mRight->getConstantValue()->getIConst(); in getConstantValue()
1902 const int index = mRight->getAsConstantUnion()->getIConst(0); in getIndexStructFieldName()
2169 int lhs = leftArray[i].getIConst(); in FoldBinary()
2170 int divisor = rightArray[i].getIConst(); in FoldBinary()
2629 resultArray[i].setIConst(-operandArray[i].getIConst()); in foldUnaryComponentWise()
2656 resultArray[i].setIConst(operandArray[i].getIConst()); in foldUnaryComponentWise()
2684 resultArray[i].setIConst(~operandArray[i].getIConst()); in foldUnaryComponentWise()
[all …]
DOutputTree.cpp288 const TField *field = fields[constantUnion->getIConst()]; in visitBinary()
290 mOut << constantUnion->getIConst() << " (field '" << field->name() << "')"; in visitBinary()
587 mOut << node->getConstantValue()[i].getIConst(); in visitConstantUnion()
DOutputHLSL.cpp192 const TField *field = structure->fields()[index->getIConst(0)]; in needStructMapping()
243 out << constUnion->getIConst(); in writeSingleConstant()
1348 const TField *field = structure->fields()[index->getIConst(0)]; in ancestorEvaluatesToSamplerInStruct()
1572 const int arrayIndex = node->getRight()->getAsConstantUnion()->getIConst(0); in visitBinary()
1614 const TField *field = structure->fields()[index->getIConst(0)]; in visitBinary()
1663 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in visitBinary()
2005 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct()
2014 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct()
2903 initial = constant->getIConst(0); in handleExcessiveLoop()
2925 limit = constant->getIConst(0); in handleExcessiveLoop()
[all …]
DConstantUnion.h55 int getIConst() const;
DShaderStorageBlockOutputHLSL.cpp593 const int arrayIndex = node->getRight()->getAsConstantUnion()->getIConst(0); in visitBinary()
629 const TField *field = structure->fields()[index->getIConst(0)]; in visitBinary()
649 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in visitBinary()
/third_party/glslang/glslang/MachineIndependent/
DConstant.cpp196 …else if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == (int)-0x80000000… in fold()
199 … newConstArray[i].setIConst(leftUnionArray[i].getIConst() / rightUnionArray[i].getIConst()); in fold()
294 … if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == INT_MIN) { in fold()
305 … if (rightUnionArray[i].getIConst() == -1 && leftUnionArray[i].getIConst() == SHRT_MIN) { in fold()
532 case EbtInt: newConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold()
624 newConstArray[i].setIConst(abs(unionArray[i].getIConst())); in fold()
633 newConstArray[i].setIConst(SIGN(unionArray[i].getIConst())); in fold()
677 newConstArray[i].setBConst(unionArray[i].getIConst() != 0); break; in fold()
685 newConstArray[i].setUConst(unionArray[i].getIConst()); break; in fold()
699 newConstArray[i].setDConst(unionArray[i].getIConst()); break; in fold()
[all …]
DParseHelper.cpp397 indexValue = index->getAsConstantUnion()->getConstArray()[0].getIConst(); in handleBracketDereference()
1733 storageClassSemantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1734 semantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1737 storageClassSemantics = (*argp)[2]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1738 semantics = (*argp)[3]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1741 storageClassSemantics = (*argp)[4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1742 semantics = (*argp)[5]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1743 storageClassSemantics2 = (*argp)[6]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1744 semantics2 = (*argp)[7]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
1755 …torageClassSemantics = (*argp)[isMS ? 5 : 4]->getAsConstantUnion()->getConstArray()[0].getIConst(); in memorySemanticsCheck()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DConstantUnion.cpp64 return (rhs.getType() == EbtInt && (rhs.getIConst() >= 0 && rhs.getIConst() <= 31)) || in IsValidShiftOffset()
80 int TConstantUnion::getIConst() const in getIConst() function in sh::TConstantUnion
117 return getIConst() == 0; in isZero()
143 setFConst(static_cast<float>(constant.getIConst())); in cast()
162 setIConst(static_cast<int>(constant.getIConst())); in cast()
181 setUConst(static_cast<unsigned int>(constant.getIConst())); in cast()
209 setBConst(constant.getIConst() != 0); in cast()
228 setIConst(constant.getIConst()); in cast()
603 returnValue.setIConst(returnValue.getIConst() | extendedSignBit); in rshift()
DIntermNode.cpp1840 const int fieldIndex = mRight->getAsConstantUnion()->getIConst(0); in promote()
1848 const int fieldIndex = mRight->getAsConstantUnion()->getIConst(0); in promote()
1990 const int fieldIndex = mRight->getAsConstantUnion()->getIConst(0); in derivePrecision()
2144 size_t index = static_cast<size_t>(rightConstant->getIConst()); in fold()
2225 int index = mRight->getConstantValue()->getIConst(); in getConstantValue()
2253 const int index = mRight->getAsConstantUnion()->getIConst(0); in getIndexStructFieldName()
2520 int lhs = leftArray[i].getIConst(); in FoldBinary()
2521 int divisor = rightArray[i].getIConst(); in FoldBinary()
2981 resultArray[i].setIConst(-operandArray[i].getIConst()); in foldUnaryComponentWise()
3008 resultArray[i].setIConst(operandArray[i].getIConst()); in foldUnaryComponentWise()
[all …]
DShaderStorageBlockOutputHLSL.cpp473 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in traverseSSBOAccess()
550 binaryNode->getRight()->getAsConstantUnion()->getIConst(0); in traverseNode()
573 const TField *field = structure->fields()[index->getIConst(0)]; in traverseNode()
583 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in traverseNode()
DOutputTree.cpp289 const TField *field = fields[constantUnion->getIConst()]; in visitBinary()
291 mOut << constantUnion->getIConst() << " (field '" << field->name() << "')"; in visitBinary()
611 mOut << node->getConstantValue()[i].getIConst(); in visitConstantUnion()
DOutputHLSL.cpp219 const TField *field = structure->fields()[index->getIConst(0)]; in needStructMapping()
270 out << constUnion->getIConst(); in writeSingleConstant()
1410 const TField *field = structure->fields()[index->getIConst(0)]; in ancestorEvaluatesToSamplerInStruct()
1634 const int arrayIndex = node->getRight()->getAsConstantUnion()->getIConst(0); in visitBinary()
1714 const TField *field = structure->fields()[index->getIConst(0)]; in visitBinary()
1763 const TField *field = interfaceBlock->fields()[index->getIConst(0)]; in visitBinary()
2076 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct()
2085 int index = nodeBinary->getRight()->getAsConstantUnion()->getIConst(0); in samplerNamePrefixFromStruct()
3004 initial = constant->getIConst(0); in handleExcessiveLoop()
3026 limit = constant->getIConst(0); in handleExcessiveLoop()
[all …]
DConstantUnion.h57 int getIConst() const;
DValidateClipCullDistance.cpp114 idx = constIdx->getIConst(); in visitBinary()
/third_party/skia/third_party/externals/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.cpp1568 tempConstArray[i].setIConst(unionArray[i].getIConst() / rightUnionArray[i].getIConst()); in fold()
1571 tempConstArray[i].setIConst(unionArray[i].getIConst() % rightUnionArray[i].getIConst()); in fold()
1789 case EbtInt: tempConstArray[i].setIConst(-unionArray[i].getIConst()); break; in fold()
1805 case EbtInt: tempConstArray[i].setIConst(~unionArray[i].getIConst()); break; in fold()
1998 tempConstArray[i].setFConst(sw::bit_cast<float>(unionArray[i].getIConst())); in fold()
2038 leftUnionArray[i].setFConst(static_cast<float>(node->getIConst(i))); in promoteConstantUnion()
2057 leftUnionArray[i].setIConst(static_cast<int>(node->getIConst(i))); in promoteConstantUnion()
2076 leftUnionArray[i].setUConst(static_cast<unsigned int>(node->getIConst(i))); in promoteConstantUnion()
2095 leftUnionArray[i].setBConst(node->getIConst(i) != 0); in promoteConstantUnion()
DValidateSwitch.cpp131 int iConst = condition->getIConst(0); in visitCase()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
DConstantFoldingTest.h104 return mFaultTolerance >= abs(node.getIConst() - value) && in isEqual()
105 (node.getIConst() - value) != std::numeric_limits<int>::min(); in isEqual()
DShaderCompileTreeTest.cpp84 isZero = (node->getIConst(i) == 0); in visitConstantUnion()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/test_utils/
DConstantFoldingTest.h104 return mFaultTolerance >= abs(node.getIConst() - value) && in isEqual()
105 (node.getIConst() - value) != std::numeric_limits<int>::min(); in isEqual()
DShaderCompileTreeTest.cpp84 isZero = (node->getIConst(i) == 0); in visitConstantUnion()
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
DInitOutputVariables_test.cpp56 if (expectedBinary->getRight()->getAsConstantUnion()->getIConst(0) != in AreLValuesTheSame()
57 candidateBinary->getRight()->getAsConstantUnion()->getIConst(0)) in AreLValuesTheSame()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/compiler_tests/
DInitOutputVariables_test.cpp56 if (expectedBinary->getRight()->getAsConstantUnion()->getIConst(0) != in AreLValuesTheSame()
57 candidateBinary->getRight()->getAsConstantUnion()->getIConst(0)) in AreLValuesTheSame()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRewriteAtomicCounters.cpp123 atomicCounterConstIndex = asBinary->getRight()->getAsConstantUnion()->getIConst(0); in CreateAtomicCounterRef()

123