Commit 96fdc04
committed
[MLIR][OpenMP] Add support for
`dist_schedule` was previously supported in Flang/Clang but was not
implemented in MLIR, instead a user would get a "not yet implemented"
error. This patch adds support for the `dist_schedule` clause to be
lowered to LLVM IR when used in an `omp.distribute` or `omp.wsloop`
section.
There has needed to be some rework required to ensure that MLIR/LLVM
emits the correct Schedule Type for the clause, as it uses a different
schedule type to other OpenMP directives/clauses in the runtime library.
This patch also ensures that when using dist_schedule or a chunked
schedule clause, the correct llvm loop parallel accesses details are
added.dist_schedule
1 parent 538c850 commit 96fdc04
File tree
10 files changed
+470
-100
lines changed- flang/docs
- llvm
- include/llvm/Frontend/OpenMP
- lib/Frontend/OpenMP
- mlir
- lib
- Dialect/OpenMP/IR
- Target/LLVMIR/Dialect/OpenMP
- test
- Conversion/OpenMPToLLVM
- Target/LLVMIR
10 files changed
+470
-100
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
| 488 | + | |
| 489 | + | |
489 | 490 | | |
490 | 491 | | |
491 | 492 | | |
| |||
496 | 497 | | |
497 | 498 | | |
498 | 499 | | |
| 500 | + | |
499 | 501 | | |
500 | 502 | | |
501 | 503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1110 | 1110 | | |
1111 | 1111 | | |
1112 | 1112 | | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
1113 | 1117 | | |
1114 | 1118 | | |
1115 | 1119 | | |
1116 | 1120 | | |
1117 | | - | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1118 | 1124 | | |
1119 | 1125 | | |
1120 | 1126 | | |
| |||
1127 | 1133 | | |
1128 | 1134 | | |
1129 | 1135 | | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
1130 | 1143 | | |
1131 | 1144 | | |
1132 | | - | |
1133 | | - | |
1134 | | - | |
1135 | | - | |
1136 | | - | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
1137 | 1152 | | |
1138 | 1153 | | |
1139 | 1154 | | |
| |||
1153 | 1168 | | |
1154 | 1169 | | |
1155 | 1170 | | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1156 | 1174 | | |
1157 | 1175 | | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
1163 | | - | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
1164 | 1180 | | |
1165 | 1181 | | |
1166 | 1182 | | |
| |||
1212 | 1228 | | |
1213 | 1229 | | |
1214 | 1230 | | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
1215 | 1235 | | |
1216 | 1236 | | |
1217 | 1237 | | |
| |||
1223 | 1243 | | |
1224 | 1244 | | |
1225 | 1245 | | |
1226 | | - | |
| 1246 | + | |
| 1247 | + | |
1227 | 1248 | | |
1228 | 1249 | | |
1229 | 1250 | | |
| |||
0 commit comments