Searched refs:is_add (Results 1 – 7 of 7) sorted by relevance
2924 const bool is_add = IsAdd(*node) || IsBiasAdd(*node) || IsLogicalOr(*node); in SimplifyArithmeticOperations() local2929 (is_mul || is_matmul || is_add || is_sub || is_any_div) && in SimplifyArithmeticOperations()2954 if ((is_mul && x_is_one) || (is_add && x_is_zero)) { in SimplifyArithmeticOperations()2984 ((is_add || is_sub) && y_is_zero)) { in SimplifyArithmeticOperations()3310 const bool is_add = IsAdd(*node); in ConstantPushDown() local3314 if (!(is_add || is_sub || is_mul || is_div)) return false; in ConstantPushDown()3315 const bool is_symmetric = is_add || is_mul; in ConstantPushDown()3328 const bool is_add_sub = (is_add || is_sub) && (is_child_add || is_child_sub); in ConstantPushDown()3423 const string symmetric_op = (is_add || is_sub) ? "Add" : "Mul"; in ConstantPushDown()3424 const string nonsymmetric_op = (is_add || is_sub) ? "Sub" : "Div"; in ConstantPushDown()
1331 const auto feed_args = [&](bool is_add) { in TEST_F() argument1335 feed.emplace_back("is_add", test::AsScalar<bool>(is_add)); in TEST_F()1394 const auto feed_args = [&](bool is_add) { in TEST_F() argument1398 feed.emplace_back("is_add", test::AsScalar<bool>(is_add)); in TEST_F()
459 for (int is_add : {true, false}) { in TEST_F()474 if (is_add) { in TEST_F()
227 uint32_t waddr, bool is_add) in process_waddr_deps() argument230 bool is_a = is_add ^ ((inst & QPU_WS) != 0); in process_waddr_deps()
403 bool is_add = (op_inst->opcode() == SpvOpFAdd) || in MergeNegateAddSubArithmetic() local405 bool swap_operands = !is_add || zero_is_variable; in MergeNegateAddSubArithmetic()406 bool negate_const = is_add; in MergeNegateAddSubArithmetic()
456 bool is_add = (op_inst->opcode() == SpvOpFAdd) || in MergeNegateAddSubArithmetic() local458 bool swap_operands = !is_add || zero_is_variable; in MergeNegateAddSubArithmetic()459 bool negate_const = is_add; in MergeNegateAddSubArithmetic()