Commit 85fe3af
authored
Added stablehlo divide fp to tosa reciprocal+mul conversion (#2873)
According to [TOSA
documentation](https://mlir.llvm.org/docs/Dialects/TOSA/#tosaintdiv-mlirtosaintdivop)
for FP division "_Floating point divide should use RECIPROCAL and MUL_":
This PR implements conversion form stablehlo.divide into combination of
TOSA ops.1 parent 96acdcb commit 85fe3af
File tree
2 files changed
+46
-0
lines changed- stablehlo/conversions/tosa
- tests
- transforms
2 files changed
+46
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
53 | 62 | | |
54 | 63 | | |
55 | 64 | | |
| |||
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
523 | 523 | | |
524 | 524 | | |
525 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
526 | 561 | | |
527 | 562 | | |
528 | 563 | | |
| |||
543 | 578 | | |
544 | 579 | | |
545 | 580 | | |
| 581 | + | |
| 582 | + | |
546 | 583 | | |
547 | 584 | | |
548 | 585 | | |
| |||
0 commit comments