Home
last modified time | relevance | path

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

/external/skia/src/sksl/
DSkSLConstantFolder.cpp33 bool rightVal = right.as<BoolLiteral>().value(); in eliminate_no_op_boolean() local
36 if ((op.kind() == Token::Kind::TK_LOGICALAND && rightVal) || // (expr && true) -> (expr) in eliminate_no_op_boolean()
37 (op.kind() == Token::Kind::TK_LOGICALOR && !rightVal) || // (expr || false) -> (expr) in eliminate_no_op_boolean()
38 (op.kind() == Token::Kind::TK_LOGICALXOR && !rightVal) || // (expr ^^ false) -> (expr) in eliminate_no_op_boolean()
39 (op.kind() == Token::Kind::TK_EQEQ && rightVal) || // (expr == true) -> (expr) in eliminate_no_op_boolean()
40 (op.kind() == Token::Kind::TK_NEQ && !rightVal)) { // (expr != false) -> (expr) in eliminate_no_op_boolean()
354 bool rightVal = right->as<BoolLiteral>().value(); in Simplify() local
357 case Token::Kind::TK_LOGICALAND: result = leftVal && rightVal; break; in Simplify()
358 case Token::Kind::TK_LOGICALOR: result = leftVal || rightVal; break; in Simplify()
359 case Token::Kind::TK_LOGICALXOR: result = leftVal ^ rightVal; break; in Simplify()
[all …]
/external/llvm-project/lld/lib/ReaderWriter/MachO/
DLayoutPass.cpp34 static std::string formatReason(StringRef reason, int leftVal, int rightVal) { in formatReason() argument
35 return (Twine(reason) + " (" + Twine(leftVal) + ", " + Twine(rightVal) + ")") in formatReason()
/external/skqp/src/sksl/
DSkSLIRGenerator.cpp1340 bool rightVal = ((BoolLiteral&) right).fValue; in constantFold() local
1343 case Token::LOGICALAND: result = leftVal && rightVal; break; in constantFold()
1344 case Token::LOGICALOR: result = leftVal || rightVal; break; in constantFold()
1345 case Token::LOGICALXOR: result = leftVal ^ rightVal; break; in constantFold()
1351 leftVal op rightVal)) in constantFold()
1354 int64_t rightVal = ((IntLiteral&) right).fValue; in constantFold() local
1360 if (rightVal) { in constantFold()
1366 if (rightVal) { in constantFold()
1388 double rightVal = ((FloatLiteral&) right).fValue; in constantFold() local
1394 if (rightVal) { in constantFold()
/external/deqp/framework/randomshaders/
DrsgBinaryOps.cpp357 ExecConstValueAccess rightVal = m_rightValueExpr->getValue(); in evaluate() local
360 evaluate(dst, leftVal, rightVal); in evaluate()