#include "error.h"
#include "oct-obj.h"
#include "ov.h"
#include "pt-cbinop.h"
#include "pt-bp.h"
#include "pt-unop.h"
#include "pt-walk.h"
Go to the source code of this file.
Functions | |
tree_binary_expression * | maybe_compound_binary_expression (tree_expression *a, tree_expression *b, int l, int c, octave_value::binary_op t) |
static octave_value::compound_binary_op | simplify_and_or_op (tree_expression *&a, tree_expression *&b, octave_value::binary_op op) |
static octave_value::compound_binary_op | simplify_ldiv_op (tree_expression *&a, tree_expression *&) |
static octave_value::compound_binary_op | simplify_mul_op (tree_expression *&a, tree_expression *&b) |
static octave_value::unary_op | strip_not (tree_expression *&exp) |
static octave_value::unary_op | strip_trans_herm (tree_expression *&exp) |
tree_binary_expression* maybe_compound_binary_expression | ( | tree_expression * | a, | |
tree_expression * | b, | |||
int | l, | |||
int | c, | |||
octave_value::binary_op | t | |||
) |
Definition at line 161 of file pt-cbinop.cc.
References octave_value::op_el_and, octave_value::op_el_or, octave_value::op_ldiv, octave_value::op_mul, simplify_and_or_op(), simplify_ldiv_op(), and simplify_mul_op().
static octave_value::compound_binary_op simplify_and_or_op | ( | tree_expression *& | a, | |
tree_expression *& | b, | |||
octave_value::binary_op | op | |||
) | [static] |
Definition at line 130 of file pt-cbinop.cc.
References octave_value::op_el_and, octave_value::op_el_or, octave_value::op_not, and strip_not().
Referenced by maybe_compound_binary_expression().
static octave_value::compound_binary_op simplify_ldiv_op | ( | tree_expression *& | a, | |
tree_expression *& | ||||
) | [static] |
Definition at line 112 of file pt-cbinop.cc.
References octave_value::op_hermitian, octave_value::op_transpose, and strip_trans_herm().
Referenced by maybe_compound_binary_expression().
static octave_value::compound_binary_op simplify_mul_op | ( | tree_expression *& | a, | |
tree_expression *& | b | |||
) | [static] |
Definition at line 85 of file pt-cbinop.cc.
References octave_value::op_hermitian, octave_value::op_transpose, and strip_trans_herm().
Referenced by maybe_compound_binary_expression().
static octave_value::unary_op strip_not | ( | tree_expression *& | exp | ) | [static] |
Definition at line 61 of file pt-cbinop.cc.
References tree_expression::is_unary_expression(), octave_value::op_not, tree_unary_expression::op_type(), and tree_unary_expression::operand().
Referenced by simplify_and_or_op().
static octave_value::unary_op strip_trans_herm | ( | tree_expression *& | exp | ) | [static] |
Definition at line 39 of file pt-cbinop.cc.
References tree_expression::is_unary_expression(), octave_value::op_hermitian, octave_value::op_transpose, tree_unary_expression::op_type(), and tree_unary_expression::operand().
Referenced by simplify_ldiv_op(), and simplify_mul_op().