Commit 4b8be16
authored
[ExportVerilog] Move declarations to the top of blocks when disallowDeclAssignments is set. (#9309)
This patch implements the logic to move wire and register declarations to
the beginning of blocks when the disallowDeclAssignments option is enabled.
This is solely for readability not for correctness.1 parent 2b42ecb commit 4b8be16
File tree
2 files changed
+29
-7
lines changed- lib/Conversion/ExportVerilog
- test/Conversion/ExportVerilog
2 files changed
+29
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
| 782 | + | |
| 783 | + | |
782 | 784 | | |
783 | | - | |
| 785 | + | |
| 786 | + | |
784 | 787 | | |
785 | 788 | | |
786 | 789 | | |
| |||
794 | 797 | | |
795 | 798 | | |
796 | 799 | | |
797 | | - | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
798 | 804 | | |
799 | 805 | | |
800 | 806 | | |
801 | | - | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
802 | 814 | | |
803 | 815 | | |
804 | 816 | | |
| |||
1384 | 1396 | | |
1385 | 1397 | | |
1386 | 1398 | | |
1387 | | - | |
| 1399 | + | |
| 1400 | + | |
1388 | 1401 | | |
1389 | 1402 | | |
1390 | 1403 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
| |||
16 | 21 | | |
17 | 22 | | |
18 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
19 | 28 | | |
0 commit comments