Home
last modified time | relevance | path

Searched refs:binaryNode (Results 1 – 15 of 15) sorted by relevance

/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DShaderStorageBlockOutputHLSL.cpp51 TIntermBinary *binaryNode = node->getAsBinaryNode(); in GetBlockLayoutInfo() local
52 if (binaryNode) in GetBlockLayoutInfo()
54 switch (binaryNode->getOp()) in GetBlockLayoutInfo()
64 return GetBlockLayoutInfo(binaryNode->getLeft(), true, storage, rowMajor); in GetBlockLayoutInfo()
69 return GetBlockLayoutInfo(binaryNode->getLeft(), rowMajorAlreadyAssigned, storage, in GetBlockLayoutInfo()
388 TIntermBinary *binaryNode = node->getAsBinaryNode(); in getMatrixStride() local
389 if (binaryNode) in getMatrixStride()
391 return getMatrixStride(binaryNode->getLeft(), storage, rowMajor, isRowMajorMatrix); in getMatrixStride()
414 TIntermBinary *binaryNode = node->getAsBinaryNode(); in collectShaderStorageBlocks() local
415 if (binaryNode) in collectShaderStorageBlocks()
[all …]
Dutil.cpp809 TIntermBinary *binaryNode = node->getAsBinaryNode(); in IsInShaderStorageBlock() local
810 if (binaryNode) in IsInShaderStorageBlock()
812 switch (binaryNode->getOp()) in IsInShaderStorageBlock()
818 return IsInShaderStorageBlock(binaryNode->getLeft()); in IsInShaderStorageBlock()
DCollectVariables.cpp135 bool visitBinary(Visit visit, TIntermBinary *binaryNode) override;
1170 bool CollectVariablesTraverser::visitBinary(Visit, TIntermBinary *binaryNode) in visitBinary() argument
1172 if (binaryNode->getOp() == EOpIndexDirectInterfaceBlock) in visitBinary()
1175 TIntermTyped *blockNode = binaryNode->getLeft()->getAsTyped(); in visitBinary()
1178 TIntermConstantUnion *constantUnion = binaryNode->getRight()->getAsConstantUnion(); in visitBinary()
DOutputHLSL.cpp67 TIntermBinary *binaryNode = node->getAsBinaryNode(); in IsInStd140UniformBlock() local
69 if (binaryNode) in IsInStd140UniformBlock()
71 return IsInStd140UniformBlock(binaryNode->getLeft()); in IsInStd140UniformBlock()
91 const TIntermBinary *binaryNode = node->getAsBinaryNode(); in GetInterfaceBlockOfUniformBlockNearestIndexOperator() local
92 if (binaryNode) in GetInterfaceBlockOfUniformBlockNearestIndexOperator()
94 if (binaryNode->getOp() == EOpIndexDirectInterfaceBlock) in GetInterfaceBlockOfUniformBlockNearestIndexOperator()
96 return binaryNode->getLeft()->getType().getInterfaceBlock(); in GetInterfaceBlockOfUniformBlockNearestIndexOperator()
DParseContext.cpp488 TIntermBinary *binaryNode = node->getAsBinaryNode(); in markStaticReadIfSymbol() local
489 if (binaryNode) in markStaticReadIfSymbol()
491 switch (binaryNode->getOp()) in markStaticReadIfSymbol()
497 markStaticReadIfSymbol(binaryNode->getLeft()); in markStaticReadIfSymbol()
526 TIntermBinary *binaryNode = node->getAsBinaryNode(); in checkCanBeLValue() local
527 if (binaryNode) in checkCanBeLValue()
529 switch (binaryNode->getOp()) in checkCanBeLValue()
540 return checkCanBeLValue(line, op, binaryNode->getLeft()); in checkCanBeLValue()
675 ASSERT(binaryNode == nullptr && swizzleNode == nullptr); in checkCanBeLValue()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/TranslatorMetalDirect/
DRewriteUnaddressableReferences.cpp226 PostResult visitBinaryPost(TIntermBinary &binaryNode) override in visitBinaryPost() argument
228 const TOperator op = binaryNode.getOp(); in visitBinaryPost()
231 TIntermTyped &left = *binaryNode.getLeft(); in visitBinaryPost()
234 return DecomposeCompoundAssignment(binaryNode); in visitBinaryPost()
237 return binaryNode; in visitBinaryPost()
315 PreResult visitBinaryPre(TIntermBinary &binaryNode) override in visitBinaryPre() argument
317 const TOperator op = binaryNode.getOp(); in visitBinaryPre()
319 const bool isAccess = IsVectorAccess(binaryNode); in visitBinaryPre()
339 TIntermTyped &leftNode = *binaryNode.getLeft(); in visitBinaryPre()
340 TIntermTyped &rightNode = *binaryNode.getRight(); in visitBinaryPre()
[all …]
DEmitMetal.cpp692 TIntermBinary *binaryNode = node.getAsBinaryNode(); in AsSpecificBinaryNode() local
693 if (binaryNode) in AsSpecificBinaryNode()
695 return binaryNode->getOp() == op ? binaryNode : nullptr; in AsSpecificBinaryNode()
727 if (TIntermBinary *binaryNode = node.getAsBinaryNode()) in Parenthesize() local
730 const TOperator op = binaryNode->getOp(); in Parenthesize()
737 return Parenthesize(*binaryNode->getLeft()); in Parenthesize()
741 return AsSpecificBinaryNode(*binaryNode->getRight(), TOperator::EOpComma); in Parenthesize()
745 const TType &resultType = binaryNode->getType(); in Parenthesize()
746 const TType &leftType = binaryNode->getLeft()->getType(); in Parenthesize()
747 const TType &rightType = binaryNode->getRight()->getType(); in Parenthesize()
[all …]
/third_party/glslang/glslang/MachineIndependent/
DParseContextBase.cpp128 TIntermBinary* binaryNode = node->getAsBinaryNode(); in lValueErrorCheck() local
130 if (binaryNode) { in lValueErrorCheck()
131 switch(binaryNode->getOp()) { in lValueErrorCheck()
137 return lValueErrorCheck(loc, op, binaryNode->getLeft()); in lValueErrorCheck()
196 if (message == nullptr && binaryNode == nullptr && symNode == nullptr) { in lValueErrorCheck()
225 TIntermBinary* binaryNode = node->getAsBinaryNode(); in rValueErrorCheck() local
226 if (binaryNode) { in rValueErrorCheck()
227 switch(binaryNode->getOp()) { in rValueErrorCheck()
233 rValueErrorCheck(loc, op, binaryNode->getLeft()); in rValueErrorCheck()
DParseHelper.cpp462 TIntermBinary* binaryNode = base->getAsBinaryNode(); in handleBracketDereference() local
463 if (binaryNode) { in handleBracketDereference()
464 TType& leftType = binaryNode->getLeft()->getWritableType(); in handleBracketDereference()
2612 TIntermBinary* binaryNode = node->getAsBinaryNode(); in lValueErrorCheck() local
2614 if (binaryNode) { in lValueErrorCheck()
2617 switch(binaryNode->getOp()) { in lValueErrorCheck()
2626 const TType& leftType = binaryNode->getLeft()->getType(); in lValueErrorCheck()
2627 …ifier().storage == EvqVaryingOut && ! leftType.getQualifier().patch && binaryNode->getLeft()->getA… in lValueErrorCheck()
2629 const TIntermSymbol* rightSymbol = binaryNode->getRight()->getAsSymbolNode(); in lValueErrorCheck()
2637 errorReturn = lValueErrorCheck(loc, op, binaryNode->getLeft()); in lValueErrorCheck()
[all …]
DIntermediate.cpp3795 TIntermBinary* binaryNode = getAsBinaryNode(); in propagatePrecision() local
3796 if (binaryNode) { in propagatePrecision()
3797 binaryNode->getLeft()->propagatePrecision(newPrecision); in propagatePrecision()
3798 binaryNode->getRight()->propagatePrecision(newPrecision); in propagatePrecision()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DReplaceShadowingVariables.cpp87 TIntermBinary *binaryNode = declVector->getAsBinaryNode(); in visitDeclaration() local
88 ASSERT(binaryNode->getOp() == EOpInitialize); in visitDeclaration()
89 symNode = binaryNode->getLeft()->getAsSymbolNode(); in visitDeclaration()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/
DRewriteRowMajorMatrices.cpp94 TIntermBinary *binaryNode = node->getAsBinaryNode(); in IsIndexNode() local
95 if (binaryNode == nullptr || child != binaryNode->getLeft()) in IsIndexNode()
100 TOperator op = binaryNode->getOp(); in IsIndexNode()
146 TIntermBinary *binaryNode = node->getAsBinaryNode(); in GetIndex() local
147 ASSERT(binaryNode); in GetIndex()
149 TOperator op = binaryNode->getOp(); in GetIndex()
153 TIntermTyped *rhs = binaryNode->getRight()->deepCopy(); in GetIndex()
174 TIntermBinary *binaryNode = node->getAsBinaryNode(); in ReplicateIndexNode() local
175 ASSERT(binaryNode); in ReplicateIndexNode()
180 return new TIntermBinary(binaryNode->getOp(), lhs, rhs); in ReplicateIndexNode()
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
DParseHelper.cpp306 TIntermBinary* binaryNode = node->getAsBinaryNode(); in lValueErrorCheck() local
308 if (binaryNode) { in lValueErrorCheck()
311 switch(binaryNode->getOp()) { in lValueErrorCheck()
315 return lValueErrorCheck(line, op, binaryNode->getLeft()); in lValueErrorCheck()
317 errorReturn = lValueErrorCheck(line, op, binaryNode->getLeft()); in lValueErrorCheck()
321 TIntermTyped* rightNode = binaryNode->getRight(); in lValueErrorCheck()
384 if (message == 0 && binaryNode == 0 && symNode == 0) { in lValueErrorCheck()
/third_party/glslang/glslang/HLSL/
DhlslParseHelper.cpp2768 const TIntermBinary* binaryNode = node->getAsBinaryNode(); in handleAssign() local
2770 if (binaryNode == nullptr) in handleAssign()
2773 return (binaryNode->getOp() == EOpIndexDirect || binaryNode->getOp() == EOpIndexIndirect) && in handleAssign()
2774 wasSplit(binaryNode->getLeft()); in handleAssign()
2783 const TIntermBinary* binaryNode = node->getAsBinaryNode(); in handleAssign() local
2784 …if (binaryNode != nullptr && (binaryNode->getOp() == EOpIndexDirect || binaryNode->getOp() == EOpI… in handleAssign()
2785 return binaryNode->getLeft()->getAsSymbolNode(); in handleAssign()
/third_party/glslang/SPIRV/
DGlslangToSpv.cpp8570 const glslang::TIntermBinary* binaryNode = node->getAsBinaryNode(); in isTrivial() local
8572 if (binaryNode == nullptr && unaryNode == nullptr) in isTrivial()
8576 …if (binaryNode && (! isTrivialLeaf(binaryNode->getLeft()) || ! isTrivialLeaf(binaryNode->getRight(… in isTrivial()