Home
last modified time | relevance | path

Searched refs:BinaryOp (Results 1 – 25 of 52) sorted by relevance

123

/third_party/skia/third_party/externals/tint/src/ast/
Dbinary_expression.h24 enum class BinaryOp { enum
57 BinaryOp op,
65 bool IsAnd() const { return op == BinaryOp::kAnd; } in IsAnd()
67 bool IsOr() const { return op == BinaryOp::kOr; } in IsOr()
69 bool IsXor() const { return op == BinaryOp::kXor; } in IsXor()
71 bool IsLogicalAnd() const { return op == BinaryOp::kLogicalAnd; } in IsLogicalAnd()
73 bool IsLogicalOr() const { return op == BinaryOp::kLogicalOr; } in IsLogicalOr()
75 bool IsEqual() const { return op == BinaryOp::kEqual; } in IsEqual()
77 bool IsNotEqual() const { return op == BinaryOp::kNotEqual; } in IsNotEqual()
79 bool IsLessThan() const { return op == BinaryOp::kLessThan; } in IsLessThan()
[all …]
Dbinary_expression_test.cc28 auto* r = create<BinaryExpression>(BinaryOp::kEqual, lhs, rhs); in TEST_F()
31 EXPECT_EQ(r->op, BinaryOp::kEqual); in TEST_F()
39 BinaryOp::kEqual, lhs, rhs); in TEST_F()
49 auto* r = create<BinaryExpression>(BinaryOp::kEqual, lhs, rhs); in TEST_F()
57 b.create<BinaryExpression>(BinaryOp::kEqual, nullptr, b.Expr("rhs")); in TEST_F()
66 b.create<BinaryExpression>(BinaryOp::kEqual, b.Expr("lhs"), nullptr); in TEST_F()
76 b1.create<BinaryExpression>(BinaryOp::kEqual, b2.Expr("lhs"), in TEST_F()
87 b1.create<BinaryExpression>(BinaryOp::kEqual, b1.Expr("lhs"), in TEST_F()
Dbinary_expression.cc26 BinaryOp o, in BinaryExpression()
34 TINT_ASSERT(AST, op != BinaryOp::kNone); in BinaryExpression()
/third_party/skia/third_party/externals/tint/src/writer/wgsl/
Dgenerator_impl_binary_test.cc24 ast::BinaryOp op;
35 if (params.op == ast::BinaryOp::kLogicalAnd || in TEST_P()
36 params.op == ast::BinaryOp::kLogicalOr) { in TEST_P()
61 BinaryData{"(left & right)", ast::BinaryOp::kAnd},
62 BinaryData{"(left | right)", ast::BinaryOp::kOr},
63 BinaryData{"(left ^ right)", ast::BinaryOp::kXor},
64 BinaryData{"(left && right)", ast::BinaryOp::kLogicalAnd},
65 BinaryData{"(left || right)", ast::BinaryOp::kLogicalOr},
66 BinaryData{"(left == right)", ast::BinaryOp::kEqual},
67 BinaryData{"(left != right)", ast::BinaryOp::kNotEqual},
[all …]
Dgenerator_impl.cc698 case ast::BinaryOp::kAnd: in EmitBinary()
701 case ast::BinaryOp::kOr: in EmitBinary()
704 case ast::BinaryOp::kXor: in EmitBinary()
707 case ast::BinaryOp::kLogicalAnd: in EmitBinary()
710 case ast::BinaryOp::kLogicalOr: in EmitBinary()
713 case ast::BinaryOp::kEqual: in EmitBinary()
716 case ast::BinaryOp::kNotEqual: in EmitBinary()
719 case ast::BinaryOp::kLessThan: in EmitBinary()
722 case ast::BinaryOp::kGreaterThan: in EmitBinary()
725 case ast::BinaryOp::kLessThanEqual: in EmitBinary()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/msl/
Dgenerator_impl_binary_test.cc24 ast::BinaryOp op;
35 return ((params.op == ast::BinaryOp::kLogicalAnd) || in TEST_P()
36 (params.op == ast::BinaryOp::kLogicalOr)) in TEST_P()
58 BinaryData{"(left & right)", ast::BinaryOp::kAnd},
59 BinaryData{"(left | right)", ast::BinaryOp::kOr},
60 BinaryData{"(left ^ right)", ast::BinaryOp::kXor},
61 BinaryData{"(left && right)", ast::BinaryOp::kLogicalAnd},
62 BinaryData{"(left || right)", ast::BinaryOp::kLogicalOr},
63 BinaryData{"(left == right)", ast::BinaryOp::kEqual},
64 BinaryData{"(left != right)", ast::BinaryOp::kNotEqual},
[all …]
Dgenerator_impl.cc345 case ast::BinaryOp::kAnd: in EmitBinary()
348 case ast::BinaryOp::kOr: in EmitBinary()
351 case ast::BinaryOp::kXor: in EmitBinary()
354 case ast::BinaryOp::kLogicalAnd: in EmitBinary()
357 case ast::BinaryOp::kLogicalOr: in EmitBinary()
360 case ast::BinaryOp::kEqual: in EmitBinary()
363 case ast::BinaryOp::kNotEqual: in EmitBinary()
366 case ast::BinaryOp::kLessThan: in EmitBinary()
369 case ast::BinaryOp::kGreaterThan: in EmitBinary()
372 case ast::BinaryOp::kLessThanEqual: in EmitBinary()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/spirv/
Dbuilder_binary_expression_test.cc26 ast::BinaryOp op;
62 if (param.op == ast::BinaryOp::kAnd || param.op == ast::BinaryOp::kOr || in TEST_P()
63 param.op == ast::BinaryOp::kXor) { in TEST_P()
121 testing::Values(BinaryData{ast::BinaryOp::kAdd, "OpIAdd"},
122 BinaryData{ast::BinaryOp::kAnd, "OpBitwiseAnd"},
123 BinaryData{ast::BinaryOp::kDivide, "OpSDiv"},
124 BinaryData{ast::BinaryOp::kModulo, "OpSMod"},
125 BinaryData{ast::BinaryOp::kMultiply, "OpIMul"},
126 BinaryData{ast::BinaryOp::kOr, "OpBitwiseOr"},
127 BinaryData{ast::BinaryOp::kSubtract, "OpISub"},
[all …]
/third_party/skia/third_party/externals/tint/src/writer/hlsl/
Dgenerator_impl_binary_test.cc28 ast::BinaryOp op;
40 if (params.op == ast::BinaryOp::kAnd || params.op == ast::BinaryOp::kOr || in TEST_P()
41 params.op == ast::BinaryOp::kXor || in TEST_P()
42 params.op == ast::BinaryOp::kShiftLeft || in TEST_P()
43 params.op == ast::BinaryOp::kShiftRight) { in TEST_P()
86 if (params.op == ast::BinaryOp::kShiftLeft || in TEST_P()
87 params.op == ast::BinaryOp::kShiftRight) { in TEST_P()
111 BinaryData{"(left & right)", ast::BinaryOp::kAnd},
112 BinaryData{"(left | right)", ast::BinaryOp::kOr},
113 BinaryData{"(left ^ right)", ast::BinaryOp::kXor},
[all …]
Dgenerator_impl_loop_test.cc209 auto* multi_stmt = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
263 auto* multi_stmt = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
319 auto* multi_stmt = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
374 auto* multi_stmt_a = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
376 auto* multi_stmt_b = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
378 auto* multi_stmt_c = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
Dgenerator_impl.cc613 if (expr->op == ast::BinaryOp::kLogicalAnd || in EmitBinary()
614 expr->op == ast::BinaryOp::kLogicalOr) { in EmitBinary()
626 if (expr->op == ast::BinaryOp::kLogicalOr) { in EmitBinary()
652 if (expr->op == ast::BinaryOp::kMultiply && in EmitBinary()
679 case ast::BinaryOp::kAnd: in EmitBinary()
682 case ast::BinaryOp::kOr: in EmitBinary()
685 case ast::BinaryOp::kXor: in EmitBinary()
688 case ast::BinaryOp::kLogicalAnd: in EmitBinary()
689 case ast::BinaryOp::kLogicalOr: { in EmitBinary()
694 case ast::BinaryOp::kEqual: in EmitBinary()
[all …]
/third_party/skia/third_party/externals/tint/src/writer/glsl/
Dgenerator_impl_binary_test.cc28 ast::BinaryOp op;
40 if (params.op == ast::BinaryOp::kAnd || params.op == ast::BinaryOp::kOr || in TEST_P()
41 params.op == ast::BinaryOp::kXor || in TEST_P()
42 params.op == ast::BinaryOp::kShiftLeft || in TEST_P()
43 params.op == ast::BinaryOp::kShiftRight) { in TEST_P()
86 if (params.op == ast::BinaryOp::kShiftLeft || in TEST_P()
87 params.op == ast::BinaryOp::kShiftRight) { in TEST_P()
111 BinaryData{"(left & right)", ast::BinaryOp::kAnd},
112 BinaryData{"(left | right)", ast::BinaryOp::kOr},
113 BinaryData{"(left ^ right)", ast::BinaryOp::kXor},
[all …]
Dgenerator_impl.cc57 bool IsRelational(tint::ast::BinaryOp op) { in IsRelational()
58 return op == tint::ast::BinaryOp::kEqual || in IsRelational()
59 op == tint::ast::BinaryOp::kNotEqual || in IsRelational()
60 op == tint::ast::BinaryOp::kLessThan || in IsRelational()
61 op == tint::ast::BinaryOp::kGreaterThan || in IsRelational()
62 op == tint::ast::BinaryOp::kLessThanEqual || in IsRelational()
63 op == tint::ast::BinaryOp::kGreaterThanEqual; in IsRelational()
231 case ast::BinaryOp::kEqual: in EmitVectorRelational()
234 case ast::BinaryOp::kNotEqual: in EmitVectorRelational()
237 case ast::BinaryOp::kLessThan: in EmitVectorRelational()
[all …]
Dgenerator_impl_loop_test.cc209 auto* multi_stmt = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
263 auto* multi_stmt = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
319 auto* multi_stmt = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
374 auto* multi_stmt_a = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
376 auto* multi_stmt_b = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
378 auto* multi_stmt_c = create<ast::BinaryExpression>(ast::BinaryOp::kLogicalAnd, in TEST_F()
/third_party/node/deps/v8/tools/
Dbigint-tester.py146 class BinaryOp(TestGenerator): class
197 class Add(BinaryOp):
201 class Sub(BinaryOp):
205 class Mul(BinaryOp):
212 class Div(BinaryOp):
235 class Shl(BinaryOp):
263 class BitAnd(BinaryOp):
267 class BitOr(BinaryOp):
271 class BitXor(BinaryOp):
/third_party/rust/crates/regex/regex-syntax/src/ast/
Dvisitor.rs198 BinaryOp(&'a ast::ClassSetBinaryOp), enumerator
357 ClassInduct::BinaryOp(op) => { in visit_class_pre()
374 ClassInduct::BinaryOp(op) => { in visit_class_post()
390 ast::ClassSet::BinaryOp(ref op) => { in induct_class()
405 ClassInduct::BinaryOp(op) => { in induct_class()
454 ClassFrame::Binary { op, .. } => ClassInduct::BinaryOp(op), in child()
473 ast::ClassSet::BinaryOp(ref op) => ClassInduct::BinaryOp(op), in from_set()
503 ClassInduct::BinaryOp(it) => match it.kind { in fmt()
/third_party/vk-gl-cts/framework/randomshaders/
DrsgBinaryOps.hpp41 class BinaryOp : public Expression class
44 BinaryOp (Token::Type operatorToken);
45 virtual ~BinaryOp (void);
69 class BinaryVecOp : public BinaryOp<Precedence, ASSOCIATIVITY_LEFT>
148 class RelationalOp : public BinaryOp<7, ASSOCIATIVITY_LEFT>
264 class EqualityComparisonOp : public BinaryOp<8, ASSOCIATIVITY_LEFT>
DrsgBinaryOps.cpp106 typedef BinaryOp<5, ASSOCIATIVITY_LEFT> CustomBinaryBase;
197 BinaryOp<Precedence, Assoc>::BinaryOp (Token::Type operatorToken) in BinaryOp() function in rsg::BinaryOp
207 BinaryOp<Precedence, Assoc>::~BinaryOp (void) in ~BinaryOp()
214 Expression* BinaryOp<Precedence, Assoc>::createNextChild (GeneratorState& state) in createNextChild()
326 float BinaryOp<Precedence, Assoc>::getWeight (const GeneratorState& state, ConstValueRangeAccess va… in getWeight()
343 void BinaryOp<Precedence, Assoc>::tokenize (GeneratorState& state, TokenStream& str) const in tokenize()
351 void BinaryOp<Precedence, Assoc>::evaluate (ExecutionContext& execCtx) in evaluate()
365 : BinaryOp<Precedence, ASSOCIATIVITY_LEFT>(operatorToken) in BinaryVecOp()
648 : BinaryOp<7, ASSOCIATIVITY_LEFT>(operatorToken) in RelationalOp()
722 return BinaryOp<7, ASSOCIATIVITY_LEFT>::getWeight(state, valueRange); in getWeight()
[all …]
/third_party/skia/third_party/externals/tint/src/reader/wgsl/
Dparser_impl_relational_expression_test.cc32 EXPECT_EQ(ast::BinaryOp::kLessThan, rel->op); in TEST_F()
52 EXPECT_EQ(ast::BinaryOp::kGreaterThan, rel->op); in TEST_F()
72 EXPECT_EQ(ast::BinaryOp::kLessThanEqual, rel->op); in TEST_F()
92 EXPECT_EQ(ast::BinaryOp::kGreaterThanEqual, rel->op); in TEST_F()
Dparser_impl_multiplicative_expression_test.cc32 EXPECT_EQ(ast::BinaryOp::kMultiply, rel->op); in TEST_F()
52 EXPECT_EQ(ast::BinaryOp::kDivide, rel->op); in TEST_F()
72 EXPECT_EQ(ast::BinaryOp::kModulo, rel->op); in TEST_F()
Dparser_impl.cc2387 ast::BinaryOp op = ast::BinaryOp::kNone; in expect_multiplicative_expr()
2389 op = ast::BinaryOp::kMultiply; in expect_multiplicative_expr()
2391 op = ast::BinaryOp::kDivide; in expect_multiplicative_expr()
2393 op = ast::BinaryOp::kModulo; in expect_multiplicative_expr()
2433 ast::BinaryOp op = ast::BinaryOp::kNone; in expect_additive_expr()
2435 op = ast::BinaryOp::kAdd; in expect_additive_expr()
2437 op = ast::BinaryOp::kSubtract; in expect_additive_expr()
2475 ast::BinaryOp op = ast::BinaryOp::kNone; in expect_shift_expr()
2477 op = ast::BinaryOp::kShiftLeft; in expect_shift_expr()
2480 op = ast::BinaryOp::kShiftRight; in expect_shift_expr()
[all …]
Dparser_impl_equality_expression_test.cc32 EXPECT_EQ(ast::BinaryOp::kEqual, rel->op); in TEST_F()
52 EXPECT_EQ(ast::BinaryOp::kNotEqual, rel->op); in TEST_F()
Dparser_impl_additive_expression_test.cc32 EXPECT_EQ(ast::BinaryOp::kAdd, rel->op); in TEST_F()
52 EXPECT_EQ(ast::BinaryOp::kSubtract, rel->op); in TEST_F()
Dparser_impl_shift_expression_test.cc32 EXPECT_EQ(ast::BinaryOp::kShiftLeft, rel->op); in TEST_F()
52 EXPECT_EQ(ast::BinaryOp::kShiftRight, rel->op); in TEST_F()
/third_party/skia/third_party/externals/tint/src/resolver/
Dresolver_test.cc88 using Op = ast::BinaryOp;
1234 ast::BinaryOp op;
1243 constexpr Params ParamsFor(ast::BinaryOp op) { in ParamsFor()
1252 static constexpr ast::BinaryOp all_ops[] = {
1253 ast::BinaryOp::kAnd,
1254 ast::BinaryOp::kOr,
1255 ast::BinaryOp::kXor,
1256 ast::BinaryOp::kLogicalAnd,
1257 ast::BinaryOp::kLogicalOr,
1258 ast::BinaryOp::kEqual,
[all …]

123