Commit 5153e0d
committed
[OpenMPIRBuilder] Split calculation of canonical loop trip count, NFC
This patch splits off the calculation of canonical loop trip counts from the
creation of canonical loops. This makes it possible to reuse this logic to, for
instance, populate the `__tgt_target_kernel` runtime call for SPMD kernels.
This feature is used to simplify one of the existing OpenMPIRBuilder tests.1 parent 38ba269 commit 5153e0d
File tree
3 files changed
+52
-29
lines changed- llvm
- include/llvm/Frontend/OpenMP
- lib/Frontend/OpenMP
- unittests/Frontend
3 files changed
+52
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
728 | 728 | | |
729 | 729 | | |
730 | 730 | | |
731 | | - | |
| 731 | + | |
732 | 732 | | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
738 | 737 | | |
739 | 738 | | |
740 | 739 | | |
| |||
758 | 757 | | |
759 | 758 | | |
760 | 759 | | |
761 | | - | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
762 | 786 | | |
763 | 787 | | |
764 | 788 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4059 | 4059 | | |
4060 | 4060 | | |
4061 | 4061 | | |
4062 | | - | |
4063 | | - | |
4064 | | - | |
4065 | | - | |
| 4062 | + | |
| 4063 | + | |
| 4064 | + | |
4066 | 4065 | | |
4067 | 4066 | | |
4068 | 4067 | | |
| |||
4075 | 4074 | | |
4076 | 4075 | | |
4077 | 4076 | | |
4078 | | - | |
4079 | | - | |
4080 | | - | |
| 4077 | + | |
4081 | 4078 | | |
4082 | 4079 | | |
4083 | 4080 | | |
| |||
4117 | 4114 | | |
4118 | 4115 | | |
4119 | 4116 | | |
4120 | | - | |
4121 | | - | |
| 4117 | + | |
| 4118 | + | |
| 4119 | + | |
| 4120 | + | |
| 4121 | + | |
| 4122 | + | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
4122 | 4131 | | |
4123 | 4132 | | |
4124 | 4133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1441 | 1441 | | |
1442 | 1442 | | |
1443 | 1443 | | |
1444 | | - | |
1445 | | - | |
| 1444 | + | |
1446 | 1445 | | |
1447 | 1446 | | |
1448 | 1447 | | |
| |||
1458 | 1457 | | |
1459 | 1458 | | |
1460 | 1459 | | |
1461 | | - | |
1462 | | - | |
1463 | | - | |
1464 | | - | |
1465 | | - | |
1466 | | - | |
1467 | | - | |
1468 | | - | |
1469 | | - | |
1470 | | - | |
1471 | | - | |
| 1460 | + | |
| 1461 | + | |
1472 | 1462 | | |
1473 | 1463 | | |
1474 | 1464 | | |
| |||
0 commit comments