Home
last modified time | relevance | path

Searched refs:rightVal (Results 1 – 3 of 3) sorted by relevance

/third_party/skia/src/sksl/
DSkSLConstantFolder.cpp32 bool rightVal = right.as<Literal>().boolValue(); in eliminate_no_op_boolean() local
35 if ((op.kind() == Token::Kind::TK_LOGICALAND && rightVal) || // (expr && true) -> (expr) in eliminate_no_op_boolean()
36 (op.kind() == Token::Kind::TK_LOGICALOR && !rightVal) || // (expr || false) -> (expr) in eliminate_no_op_boolean()
37 (op.kind() == Token::Kind::TK_LOGICALXOR && !rightVal) || // (expr ^^ false) -> (expr) in eliminate_no_op_boolean()
38 (op.kind() == Token::Kind::TK_EQEQ && rightVal) || // (expr == true) -> (expr) in eliminate_no_op_boolean()
39 (op.kind() == Token::Kind::TK_NEQ && !rightVal)) { // (expr != false) -> (expr) in eliminate_no_op_boolean()
359 bool rightVal = right->as<Literal>().boolValue(); in Simplify() local
362 case Token::Kind::TK_LOGICALAND: result = leftVal && rightVal; break; in Simplify()
363 case Token::Kind::TK_LOGICALOR: result = leftVal || rightVal; break; in Simplify()
364 case Token::Kind::TK_LOGICALXOR: result = leftVal ^ rightVal; break; in Simplify()
[all …]
/third_party/flutter/skia/src/sksl/
DSkSLIRGenerator.cpp1516 bool rightVal = ((BoolLiteral&) right).fValue; in constantFold() local
1519 case Token::LOGICALAND: result = leftVal && rightVal; break; in constantFold()
1520 case Token::LOGICALOR: result = leftVal || rightVal; break; in constantFold()
1521 case Token::LOGICALXOR: result = leftVal ^ rightVal; break; in constantFold()
1527 leftVal op rightVal)) in constantFold()
1530 int64_t rightVal = ((IntLiteral&) right).fValue; in constantFold() local
1536 if (rightVal) { in constantFold()
1542 if (rightVal) { in constantFold()
1557 if (rightVal >= 0 && rightVal <= 31) { in constantFold()
1563 if (rightVal >= 0 && rightVal <= 31) { in constantFold()
[all …]
/third_party/vk-gl-cts/framework/randomshaders/
DrsgBinaryOps.cpp357 ExecConstValueAccess rightVal = m_rightValueExpr->getValue(); in evaluate() local
360 evaluate(dst, leftVal, rightVal); in evaluate()