Home
last modified time | relevance | path

Searched refs:UnaryOp (Results 1 – 25 of 54) sorted by relevance

123

/third_party/skia/third_party/externals/tint/src/ast/
Dunary_op.cc20 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 <<()
Dunary_op_expression_test.cc29 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()
Dunary_op.h24 enum class UnaryOp { enum
35 std::ostream& operator<<(std::ostream& out, UnaryOp mod);
Dunary_op_expression.h34 UnaryOp op,
47 const UnaryOp op;
Dunary_op_expression.cc26 UnaryOp o, in UnaryOpExpression()
/third_party/skia/third_party/externals/tint/src/writer/msl/
Dgenerator_impl_unary_op_test.cc27 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()
Dgenerator_impl.cc2603 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/
Dgenerator_impl_unary_op_test.cc27 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()
Dgenerator_impl.cc770 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/
Dgenerator_impl_unary_op_test.cc27 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/
Dgenerator_impl_unary_op_test.cc27 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/
Dbuilder_unary_op_expression_test.cc26 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/
Dparser_impl_unary_expression_test.cc51 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/
Dbigint-tester.py119 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/
Dsimplify_pointers.cc99 case ast::UnaryOp::kIndirection: in Reduce()
103 case ast::UnaryOp::kAddressOf: in Reduce()
Dfor_loop_to_loop.cc35 ast::UnaryOp::kNot, ctx.Clone(cond)); in Run()
Dloop_to_for_loop.cc120 condition = ctx.dst->create<ast::UnaryOpExpression>(ast::UnaryOp::kNot, in Run()
Darray_length_from_uniform.cc67 if (!param || param->op != ast::UnaryOp::kAddressOf) { in IterateArrayLengthOnStorageVar()
Dcalculate_array_length.cc140 if (!address_of || address_of->op != ast::UnaryOp::kAddressOf) { in Run()
/third_party/skia/third_party/externals/tint/src/resolver/
Dresolver_test.cc1719 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/
Dast_opt.c44 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()
Dast.c248 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/
Dparser.h134 FRIEND_TEST_ALL_PREFIXES(Parser, UnaryOp);
Dparser_unittest.cc179 TEST(Parser, UnaryOp) { in TEST() argument
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/TableGen/
DRecord.h754 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()

123