We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fc6e12 commit bb958cdCopy full SHA for bb958cd
mlir/test/Dialect/OpenMP/invalid.mlir
@@ -2272,3 +2272,22 @@ func.func @undefined_privatizer(%arg0: !llvm.ptr) {
2272
}) : (!llvm.ptr) -> ()
2273
return
2274
}
2275
+
2276
+// -----
2277
2278
+omp.private {type = private} @var1.privatizer : !llvm.ptr alloc {
2279
+^bb0(%arg0: !llvm.ptr):
2280
+ omp.yield(%arg0 : !llvm.ptr)
2281
+} copy {
2282
+^bb0(%arg0: !llvm.ptr, %arg1: !llvm.ptr):
2283
2284
+}
2285
2286
+func.func @byref_in_private(%arg0: index) {
2287
+ // expected-error @below {{private clause cannot have byref attributes}}
2288
+ omp.parallel private(byref @var1.privatizer %arg0 -> %arg2 : index) {
2289
+ omp.terminator
2290
+ }
2291
2292
+ return
2293
0 commit comments