| 350 | //===----------------------------------------------------------------------===// |
| 351 | |
| 352 | OpFoldResult AddOp::fold(ArrayRef<Attribute> operands) { |
| 353 | // TODO(b/142478136): Handle fused ops. |
| 354 | if (fused_activation_function() != "NONE") return {}; |
| 355 | return ConstFoldBinaryOp( |
| 356 | getType(), operands, [](APFloat a, APFloat b) { return a + b; }, |
| 357 | [](APInt a, APInt b) { return a + b; }, getOperation()->isCommutative()); |
| 358 | } |
| 359 | |
| 360 | //===----------------------------------------------------------------------===// |
| 361 | // ConcatenationOp |
nothing calls this directly
no test coverage detected