Lines Matching refs:binOp
275 TIntermBinary *binOp = cond->getAsBinaryNode(); in validateForLoopCond() local
276 if (binOp == nullptr) in validateForLoopCond()
282 TIntermSymbol *symbol = binOp->getLeft()->getAsSymbolNode(); in validateForLoopCond()
285 error(binOp->getLine(), "Invalid condition", "for"); in validateForLoopCond()
294 switch (binOp->getOp()) in validateForLoopCond()
304 error(binOp->getLine(), "Invalid relational operator", in validateForLoopCond()
305 GetOperatorString(binOp->getOp())); in validateForLoopCond()
309 if (!isConstExpr(binOp->getRight())) in validateForLoopCond()
311 error(binOp->getLine(), "Loop index cannot be compared with non-constant expression", in validateForLoopCond()
338 TIntermBinary *binOp = unOp ? nullptr : expr->getAsBinaryNode(); in validateForLoopExpr() local
349 else if (binOp != nullptr) in validateForLoopExpr()
351 op = binOp->getOp(); in validateForLoopExpr()
352 symbol = binOp->getLeft()->getAsSymbolNode(); in validateForLoopExpr()
374 ASSERT((unOp != nullptr) && (binOp == nullptr)); in validateForLoopExpr()
378 ASSERT((unOp == nullptr) && (binOp != nullptr)); in validateForLoopExpr()
394 if (binOp != nullptr) in validateForLoopExpr()
396 if (!isConstExpr(binOp->getRight())) in validateForLoopExpr()
398 error(binOp->getLine(), "Loop index cannot be modified by non-constant expression", in validateForLoopExpr()