Home
last modified time | relevance | path

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

/third_party/skia/src/sksl/
DSkSLConstantFolder.cpp50 bool leftVal = left.as<Literal>().boolValue(); in short_circuit_boolean() local
53 if ((op.kind() == Token::Kind::TK_LOGICALAND && !leftVal) || // (false && expr) -> (false) in short_circuit_boolean()
54 (op.kind() == Token::Kind::TK_LOGICALOR && leftVal)) { // (true || expr) -> (true) in short_circuit_boolean()
358 bool leftVal = left->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()
365 case Token::Kind::TK_EQEQ: result = leftVal == rightVal; break; in Simplify()
366 case Token::Kind::TK_NEQ: result = leftVal != rightVal; break; in Simplify()
427 SKSL_INT leftVal = left->as<Literal>().intValue(); in Simplify() local
[all …]
/third_party/flutter/skia/src/sksl/
DSkSLIRGenerator.cpp1477 bool leftVal = ((BoolLiteral&) left).fValue; in short_circuit_boolean() local
1480 return leftVal ? right.clone() in short_circuit_boolean()
1484 return leftVal ? std::unique_ptr<Expression>(new BoolLiteral(context, left.fOffset, true)) in short_circuit_boolean()
1515 bool leftVal = ((BoolLiteral&) left).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()
1529 int64_t leftVal = ((IntLiteral&) left).fValue; in constantFold() local
1575 double leftVal = ((FloatLiteral&) left).fValue; in constantFold() local
/third_party/vk-gl-cts/framework/randomshaders/
DrsgBinaryOps.cpp356 ExecConstValueAccess leftVal = m_leftValueExpr->getValue(); in evaluate() local
360 evaluate(dst, leftVal, rightVal); in evaluate()