Commit d20d166
committed
[mlir][tosa] Print generic
The generic printer/parser captures information about block arguments
for then/else regions, while the simplified version does not. Currently
the simplified printer is preferred by default, which means information
about block arguments can be lost during a parse/print round-trip. This
commit changes that behaviour so that the generic printer is
preferred when block arguments have been provided, thus avoiding loss
of information.
Change-Id: Ia44fde857e6cd3a26dbc40c0a9187b4ddb95666bcond_if when block arguments are present1 parent 5a9cc93 commit d20d166
File tree
2 files changed
+92
-5
lines changed- mlir
- lib/Dialect/Tosa/IR
- test/Dialect/Tosa
2 files changed
+92
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3649 | 3649 | | |
3650 | 3650 | | |
3651 | 3651 | | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
| 3655 | + | |
| 3656 | + | |
| 3657 | + | |
| 3658 | + | |
3652 | 3659 | | |
3653 | 3660 | | |
3654 | 3661 | | |
3655 | 3662 | | |
3656 | 3663 | | |
3657 | 3664 | | |
3658 | | - | |
3659 | 3665 | | |
3660 | 3666 | | |
3661 | | - | |
3662 | | - | |
| 3667 | + | |
3663 | 3668 | | |
3664 | 3669 | | |
3665 | 3670 | | |
| |||
3681 | 3686 | | |
3682 | 3687 | | |
3683 | 3688 | | |
| 3689 | + | |
| 3690 | + | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
| 3695 | + | |
| 3696 | + | |
| 3697 | + | |
| 3698 | + | |
| 3699 | + | |
3684 | 3700 | | |
3685 | 3701 | | |
3686 | 3702 | | |
| |||
3690 | 3706 | | |
3691 | 3707 | | |
3692 | 3708 | | |
3693 | | - | |
| 3709 | + | |
3694 | 3710 | | |
3695 | 3711 | | |
3696 | 3712 | | |
3697 | 3713 | | |
3698 | | - | |
3699 | 3714 | | |
3700 | 3715 | | |
3701 | 3716 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
0 commit comments