Commit b9f84bc
authored
[Clang][OpenMP] Add an additional class to hold data that will be shared between all loop transformations (#155849)
This is preparatory work for the implementation of `#pragma omp fuse` in
#139293
**Note**: this change builds on top of
#155848
This change adds an additional class to hold data that will be shared
between all loop transformations: those that apply to canonical loop
nests (the majority) and those that apply to canonical loop sequences
(`fuse` in OpenMP 6.0).
This class is not a statement by itself and its goal is to avoid having
to replicate information between classes.
Also simplfiy the way we handle the "generated loops" information as we
currently only need to know if it is zero or non-zero.1 parent 82830e8 commit b9f84bc
File tree
5 files changed
+52
-40
lines changed- clang
- include/clang/AST
- lib
- AST
- Sema
- Serialization
5 files changed
+52
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
959 | 983 | | |
960 | 984 | | |
961 | | - | |
| 985 | + | |
| 986 | + | |
962 | 987 | | |
963 | 988 | | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | 989 | | |
968 | 990 | | |
969 | 991 | | |
970 | 992 | | |
971 | 993 | | |
972 | 994 | | |
973 | | - | |
974 | | - | |
975 | | - | |
976 | 995 | | |
977 | 996 | | |
978 | 997 | | |
979 | 998 | | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | 999 | | |
984 | 1000 | | |
985 | 1001 | | |
| |||
5560 | 5576 | | |
5561 | 5577 | | |
5562 | 5578 | | |
5563 | | - | |
5564 | | - | |
5565 | | - | |
| 5579 | + | |
5566 | 5580 | | |
5567 | 5581 | | |
5568 | 5582 | | |
| |||
5638 | 5652 | | |
5639 | 5653 | | |
5640 | 5654 | | |
5641 | | - | |
5642 | | - | |
5643 | | - | |
| 5655 | + | |
5644 | 5656 | | |
5645 | 5657 | | |
5646 | 5658 | | |
| |||
5744 | 5756 | | |
5745 | 5757 | | |
5746 | 5758 | | |
5747 | | - | |
| 5759 | + | |
| 5760 | + | |
5748 | 5761 | | |
5749 | 5762 | | |
5750 | 5763 | | |
| |||
5794 | 5807 | | |
5795 | 5808 | | |
5796 | 5809 | | |
5797 | | - | |
5798 | | - | |
5799 | | - | |
| 5810 | + | |
5800 | 5811 | | |
5801 | 5812 | | |
5802 | 5813 | | |
| |||
5867 | 5878 | | |
5868 | 5879 | | |
5869 | 5880 | | |
5870 | | - | |
5871 | | - | |
5872 | | - | |
| 5881 | + | |
5873 | 5882 | | |
5874 | 5883 | | |
5875 | 5884 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
148 | | - | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
447 | 448 | | |
448 | 449 | | |
449 | 450 | | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
456 | 457 | | |
457 | 458 | | |
458 | 459 | | |
459 | | - | |
| 460 | + | |
460 | 461 | | |
461 | 462 | | |
462 | 463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14983 | 14983 | | |
14984 | 14984 | | |
14985 | 14985 | | |
14986 | | - | |
| 14986 | + | |
14987 | 14987 | | |
14988 | 14988 | | |
14989 | 14989 | | |
14990 | 14990 | | |
14991 | | - | |
| 14991 | + | |
| 14992 | + | |
14992 | 14993 | | |
14993 | 14994 | | |
14994 | 14995 | | |
| |||
15011 | 15012 | | |
15012 | 15013 | | |
15013 | 15014 | | |
15014 | | - | |
| 15015 | + | |
15015 | 15016 | | |
15016 | | - | |
| 15017 | + | |
| 15018 | + | |
15017 | 15019 | | |
15018 | 15020 | | |
15019 | 15021 | | |
| |||
15228 | 15230 | | |
15229 | 15231 | | |
15230 | 15232 | | |
15231 | | - | |
| 15233 | + | |
15232 | 15234 | | |
15233 | 15235 | | |
15234 | 15236 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2450 | 2450 | | |
2451 | 2451 | | |
2452 | 2452 | | |
2453 | | - | |
| 2453 | + | |
2454 | 2454 | | |
2455 | 2455 | | |
2456 | 2456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2459 | 2459 | | |
2460 | 2460 | | |
2461 | 2461 | | |
2462 | | - | |
| 2462 | + | |
2463 | 2463 | | |
2464 | 2464 | | |
2465 | 2465 | | |
| |||
0 commit comments