/third_party/skia/third_party/externals/tint/src/ast/ |
D | unary_op.cc | 20 std::ostream& operator<<(std::ostream& out, UnaryOp mod) { in operator <<() 22 case UnaryOp::kAddressOf: { in operator <<() 26 case UnaryOp::kComplement: { in operator <<() 30 case UnaryOp::kIndirection: { in operator <<() 34 case UnaryOp::kNegation: { in operator <<() 38 case UnaryOp::kNot: { in operator <<()
|
D | unary_op_expression_test.cc | 29 auto* u = create<UnaryOpExpression>(UnaryOp::kNot, ident); in TEST_F() 30 EXPECT_EQ(u->op, UnaryOp::kNot); in TEST_F() 37 UnaryOp::kNot, ident); in TEST_F() 45 auto* u = create<UnaryOpExpression>(UnaryOp::kNot, ident); in TEST_F() 53 b.create<UnaryOpExpression>(UnaryOp::kNot, nullptr); in TEST_F() 63 b1.create<UnaryOpExpression>(UnaryOp::kNot, b2.Expr(true)); in TEST_F()
|
D | unary_op.h | 24 enum class UnaryOp { enum 35 std::ostream& operator<<(std::ostream& out, UnaryOp mod);
|
D | unary_op_expression.h | 34 UnaryOp op, 47 const UnaryOp op;
|
D | unary_op_expression.cc | 26 UnaryOp o, in UnaryOpExpression()
|
/third_party/skia/third_party/externals/tint/src/writer/msl/ |
D | generator_impl_unary_op_test.cc | 27 create<ast::UnaryOpExpression>(ast::UnaryOp::kAddressOf, Expr("expr")); in TEST_F() 40 create<ast::UnaryOpExpression>(ast::UnaryOp::kComplement, Expr("expr")); in TEST_F() 54 create<ast::UnaryOpExpression>(ast::UnaryOp::kAddressOf, Expr("G"))); in TEST_F() 56 create<ast::UnaryOpExpression>(ast::UnaryOp::kIndirection, Expr("expr")); in TEST_F() 68 auto* op = create<ast::UnaryOpExpression>(ast::UnaryOp::kNot, Expr("expr")); in TEST_F() 81 create<ast::UnaryOpExpression>(ast::UnaryOp::kNegation, Expr("expr")); in TEST_F() 93 ast::UnaryOp::kNegation, Expr(std::numeric_limits<int32_t>::min())); in TEST_F()
|
D | generator_impl.cc | 2603 if (expr->op == ast::UnaryOp::kNegation && in EmitUnaryOp() 2648 case ast::UnaryOp::kAddressOf: in EmitUnaryOp() 2651 case ast::UnaryOp::kComplement: in EmitUnaryOp() 2654 case ast::UnaryOp::kIndirection: in EmitUnaryOp() 2657 case ast::UnaryOp::kNot: in EmitUnaryOp() 2660 case ast::UnaryOp::kNegation: in EmitUnaryOp()
|
/third_party/skia/third_party/externals/tint/src/writer/wgsl/ |
D | generator_impl_unary_op_test.cc | 27 create<ast::UnaryOpExpression>(ast::UnaryOp::kAddressOf, Expr("expr")); in TEST_F() 40 create<ast::UnaryOpExpression>(ast::UnaryOp::kComplement, Expr("expr")); in TEST_F() 54 create<ast::UnaryOpExpression>(ast::UnaryOp::kAddressOf, Expr("G"))); in TEST_F() 56 create<ast::UnaryOpExpression>(ast::UnaryOp::kIndirection, Expr("expr")); in TEST_F() 68 auto* op = create<ast::UnaryOpExpression>(ast::UnaryOp::kNot, Expr("expr")); in TEST_F() 81 create<ast::UnaryOpExpression>(ast::UnaryOp::kNegation, Expr("expr")); in TEST_F()
|
D | generator_impl.cc | 770 case ast::UnaryOp::kAddressOf: in EmitUnaryOp() 773 case ast::UnaryOp::kComplement: in EmitUnaryOp() 776 case ast::UnaryOp::kIndirection: in EmitUnaryOp() 779 case ast::UnaryOp::kNot: in EmitUnaryOp() 782 case ast::UnaryOp::kNegation: in EmitUnaryOp()
|
/third_party/skia/third_party/externals/tint/src/writer/glsl/ |
D | generator_impl_unary_op_test.cc | 27 create<ast::UnaryOpExpression>(ast::UnaryOp::kAddressOf, Expr("expr")); in TEST_F() 40 create<ast::UnaryOpExpression>(ast::UnaryOp::kComplement, Expr("expr")); in TEST_F() 54 create<ast::UnaryOpExpression>(ast::UnaryOp::kAddressOf, Expr("G"))); in TEST_F() 56 create<ast::UnaryOpExpression>(ast::UnaryOp::kIndirection, Expr("expr")); in TEST_F() 68 auto* op = create<ast::UnaryOpExpression>(ast::UnaryOp::kNot, Expr("expr")); in TEST_F() 81 create<ast::UnaryOpExpression>(ast::UnaryOp::kNegation, Expr("expr")); in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/writer/hlsl/ |
D | generator_impl_unary_op_test.cc | 27 create<ast::UnaryOpExpression>(ast::UnaryOp::kAddressOf, Expr("expr")); in TEST_F() 40 create<ast::UnaryOpExpression>(ast::UnaryOp::kComplement, Expr("expr")); in TEST_F() 54 create<ast::UnaryOpExpression>(ast::UnaryOp::kAddressOf, Expr("G"))); in TEST_F() 56 create<ast::UnaryOpExpression>(ast::UnaryOp::kIndirection, Expr("expr")); in TEST_F() 68 auto* op = create<ast::UnaryOpExpression>(ast::UnaryOp::kNot, Expr("expr")); in TEST_F() 81 create<ast::UnaryOpExpression>(ast::UnaryOp::kNegation, Expr("expr")); in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/writer/spirv/ |
D | builder_unary_op_expression_test.cc | 26 auto* expr = create<ast::UnaryOpExpression>(ast::UnaryOp::kNegation, Expr(1)); in TEST_F() 43 create<ast::UnaryOpExpression>(ast::UnaryOp::kNegation, Expr(1.f)); in TEST_F() 60 create<ast::UnaryOpExpression>(ast::UnaryOp::kComplement, Expr(1)); in TEST_F() 76 auto* expr = create<ast::UnaryOpExpression>(ast::UnaryOp::kNot, Expr(false)); in TEST_F() 95 create<ast::UnaryOpExpression>(ast::UnaryOp::kNegation, Expr("param")); in TEST_F()
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | parser_impl_unary_expression_test.cc | 51 ASSERT_EQ(u->op, ast::UnaryOp::kNegation); in TEST_F() 67 EXPECT_EQ(u->op, ast::UnaryOp::kAddressOf); in TEST_F() 81 EXPECT_EQ(u->op, ast::UnaryOp::kIndirection); in TEST_F() 95 EXPECT_EQ(u->op, ast::UnaryOp::kAddressOf); in TEST_F() 109 EXPECT_EQ(u->op, ast::UnaryOp::kIndirection); in TEST_F() 133 ASSERT_EQ(u->op, ast::UnaryOp::kNot); in TEST_F() 159 ASSERT_EQ(u->op, ast::UnaryOp::kComplement); in TEST_F()
|
/third_party/node/deps/v8/tools/ |
D | bigint-tester.py | 119 class UnaryOp(TestGenerator): class 181 class Neg(UnaryOp): 185 class BitNot(UnaryOp): 189 class Inc(UnaryOp): 193 class Dec(UnaryOp):
|
/third_party/skia/third_party/externals/tint/src/transform/ |
D | simplify_pointers.cc | 99 case ast::UnaryOp::kIndirection: in Reduce() 103 case ast::UnaryOp::kAddressOf: in Reduce()
|
D | for_loop_to_loop.cc | 35 ast::UnaryOp::kNot, ctx.Clone(cond)); in Run()
|
D | loop_to_for_loop.cc | 120 condition = ctx.dst->create<ast::UnaryOpExpression>(ast::UnaryOp::kNot, in Run()
|
D | array_length_from_uniform.cc | 67 if (!param || param->op != ast::UnaryOp::kAddressOf) { in IterateArrayLengthOnStorageVar()
|
D | calculate_array_length.cc | 140 if (!address_of || address_of->op != ast::UnaryOp::kAddressOf) { in Run()
|
/third_party/skia/third_party/externals/tint/src/resolver/ |
D | resolver_test.cc | 1719 using UnaryOpExpressionTest = ResolverTestWithParam<ast::UnaryOp>; 1723 if (op == ast::UnaryOp::kNot) { in TEST_P() 1725 } else if (op == ast::UnaryOp::kNegation || op == ast::UnaryOp::kComplement) { in TEST_P() 1737 if (op == ast::UnaryOp::kNot) { in TEST_P() 1739 } else if (op == ast::UnaryOp::kNegation || op == ast::UnaryOp::kComplement) { in TEST_P() 1748 testing::Values(ast::UnaryOp::kComplement, 1749 ast::UnaryOp::kNegation, 1750 ast::UnaryOp::kNot)); 1994 auto* der = create<ast::UnaryOpExpression>(ast::UnaryOp::kNot, in TEST_F() 2005 auto* der = create<ast::UnaryOpExpression>(ast::UnaryOp::kComplement, in TEST_F() [all …]
|
/third_party/python/Python/ |
D | ast_opt.c | 44 expr_ty arg = node->v.UnaryOp.operand; in fold_unaryop() 48 if (node->v.UnaryOp.op == Not && arg->kind == Compare_kind && in fold_unaryop() 97 PyObject *newval = ops[node->v.UnaryOp.op](arg->v.Constant.value); in fold_unaryop() 507 CALL(astfold_expr, expr_ty, node_->v.UnaryOp.operand); in astfold_expr()
|
D | ast.c | 248 ret = validate_expr(state, exp->v.UnaryOp.operand, Load); in validate_expr() 390 if (exp->v.UnaryOp.op != USub) { in ensure_literal_negative() 394 expr_ty operand = exp->v.UnaryOp.operand; in ensure_literal_negative()
|
/third_party/gn/src/gn/ |
D | parser.h | 134 FRIEND_TEST_ALL_PREFIXES(Parser, UnaryOp);
|
D | parser_unittest.cc | 179 TEST(Parser, UnaryOp) { in TEST() argument
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/TableGen/ |
D | Record.h | 754 enum UnaryOp : uint8_t { CAST, HEAD, TAIL, SIZE, EMPTY, GETOP }; enum 759 UnOpInit(UnaryOp opc, Init *lhs, RecTy *Type) in UnOpInit() 770 static UnOpInit *get(UnaryOp opc, Init *lhs, RecTy *Type); 788 UnaryOp getOpcode() const { return (UnaryOp)Opc; } in getOpcode()
|