Home
last modified time | relevance | path

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

/external/skia/src/sksl/
DSkSLConstantFolder.cpp52 bool leftVal = left.as<BoolLiteral>().value(); in short_circuit_boolean() local
55 if ((op.kind() == Token::Kind::TK_LOGICALAND && !leftVal) || // (false && expr) -> (false) in short_circuit_boolean()
56 (op.kind() == Token::Kind::TK_LOGICALOR && leftVal)) { // (true || expr) -> (true) in short_circuit_boolean()
353 bool leftVal = left->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()
360 case Token::Kind::TK_EQEQ: result = leftVal == rightVal; break; in Simplify()
361 case Token::Kind::TK_NEQ: result = leftVal != rightVal; break; in Simplify()
421 #define RESULT(t, op) t ## Literal::Make(offset, leftVal op rightVal, &resultType) 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.cpp1301 bool leftVal = ((BoolLiteral&) left).fValue; in short_circuit_boolean() local
1304 return leftVal ? right.clone() in short_circuit_boolean()
1308 return leftVal ? std::unique_ptr<Expression>(new BoolLiteral(context, left.fOffset, true)) in short_circuit_boolean()
1339 bool leftVal = ((BoolLiteral&) left).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()
1353 int64_t leftVal = ((IntLiteral&) left).fValue; in constantFold() local
1387 double leftVal = ((FloatLiteral&) left).fValue; in constantFold() local
/external/deqp/framework/randomshaders/
DrsgBinaryOps.cpp356 ExecConstValueAccess leftVal = m_leftValueExpr->getValue(); in evaluate() local
360 evaluate(dst, leftVal, rightVal); in evaluate()