diff options
author | Tom Tromey <tom@tromey.com> | 2021-03-08 07:27:57 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2021-03-08 07:28:31 -0700 |
commit | 2492ba36f690fa6ce584132dce3e2f26fbb89f87 (patch) | |
tree | ebf6afe6ac641daa89c1954937eb70decb63428a /gdb/c-exp.h | |
parent | a88c3c8dd36424c40074b0dd6f3cc124f9aded3c (diff) | |
download | gdb-2492ba36f690fa6ce584132dce3e2f26fbb89f87.zip gdb-2492ba36f690fa6ce584132dce3e2f26fbb89f87.tar.gz gdb-2492ba36f690fa6ce584132dce3e2f26fbb89f87.tar.bz2 |
Introduce opencl_notequal_operation
This adds the opencl_notequal_operation typedef, implementing "!=" for
OpenCL.
gdb/ChangeLog
2021-03-08 Tom Tromey <tom@tromey.com>
* opencl-lang.c (opencl_logical_not): No longer static. Change
parameters.
(evaluate_subexp_opencl): Update.
* c-exp.h (opencl_notequal_operation): New typedef.
Diffstat (limited to 'gdb/c-exp.h')
-rw-r--r-- | gdb/c-exp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/c-exp.h b/gdb/c-exp.h index dc92e7a..1afe2d2 100644 --- a/gdb/c-exp.h +++ b/gdb/c-exp.h @@ -38,6 +38,11 @@ extern struct value *opencl_relop (struct type *expect_type, struct expression *exp, enum noside noside, enum exp_opcode op, struct value *arg1, struct value *arg2); +extern struct value *opencl_logical_not (struct type *expect_type, + struct expression *exp, + enum noside noside, + enum exp_opcode op, + struct value *arg); namespace expr { @@ -162,6 +167,9 @@ using opencl_geq_operation = opencl_binop_operation<BINOP_GEQ, using opencl_leq_operation = opencl_binop_operation<BINOP_LEQ, opencl_relop>; +using opencl_not_operation = unop_operation<UNOP_LOGICAL_NOT, + opencl_logical_not>; + }/* namespace expr */ #endif /* C_EXP_H */ |