@@ -213,8 +213,8 @@ def ParallelOp : OpenMP_Op<"parallel", traits = [
213
213
214
214
let assemblyFormat = clausesAssemblyFormat # [{
215
215
custom<PrivateReductionRegion>($region, $private_vars, type($private_vars),
216
- $private_syms, $reduction_mod , $reduction_vars, type( $reduction_vars), $reduction_byref ,
217
- $reduction_syms) attr-dict
216
+ $private_syms, $private_needs_barrier , $reduction_mod, $reduction_vars,
217
+ type($reduction_vars), $reduction_byref, $reduction_syms) attr-dict
218
218
}];
219
219
220
220
let hasVerifier = 1;
@@ -258,8 +258,8 @@ def TeamsOp : OpenMP_Op<"teams", traits = [
258
258
259
259
let assemblyFormat = clausesAssemblyFormat # [{
260
260
custom<PrivateReductionRegion>($region, $private_vars, type($private_vars),
261
- $private_syms, $reduction_mod , $reduction_vars, type( $reduction_vars), $reduction_byref ,
262
- $reduction_syms) attr-dict
261
+ $private_syms, $private_needs_barrier , $reduction_mod, $reduction_vars,
262
+ type($reduction_vars), $reduction_byref, $reduction_syms) attr-dict
263
263
}];
264
264
265
265
let hasVerifier = 1;
@@ -317,8 +317,8 @@ def SectionsOp : OpenMP_Op<"sections", traits = [
317
317
318
318
let assemblyFormat = clausesAssemblyFormat # [{
319
319
custom<PrivateReductionRegion>($region, $private_vars, type($private_vars),
320
- $private_syms, $reduction_mod , $reduction_vars, type( $reduction_vars), $reduction_byref ,
321
- $reduction_syms) attr-dict
320
+ $private_syms, $private_needs_barrier , $reduction_mod, $reduction_vars,
321
+ type($reduction_vars), $reduction_byref, $reduction_syms) attr-dict
322
322
}];
323
323
324
324
let hasVerifier = 1;
@@ -350,7 +350,7 @@ def SingleOp : OpenMP_Op<"single", traits = [
350
350
351
351
let assemblyFormat = clausesAssemblyFormat # [{
352
352
custom<PrivateRegion>($region, $private_vars, type($private_vars),
353
- $private_syms) attr-dict
353
+ $private_syms, $private_needs_barrier ) attr-dict
354
354
}];
355
355
356
356
let hasVerifier = 1;
@@ -505,8 +505,8 @@ def LoopOp : OpenMP_Op<"loop", traits = [
505
505
506
506
let assemblyFormat = clausesAssemblyFormat # [{
507
507
custom<PrivateReductionRegion>($region, $private_vars, type($private_vars),
508
- $private_syms, $reduction_mod , $reduction_vars, type( $reduction_vars), $reduction_byref ,
509
- $reduction_syms) attr-dict
508
+ $private_syms, $private_needs_barrier , $reduction_mod, $reduction_vars,
509
+ type($reduction_vars), $reduction_byref, $reduction_syms) attr-dict
510
510
}];
511
511
512
512
let builders = [
@@ -557,8 +557,8 @@ def WsloopOp : OpenMP_Op<"wsloop", traits = [
557
557
558
558
let assemblyFormat = clausesAssemblyFormat # [{
559
559
custom<PrivateReductionRegion>($region, $private_vars, type($private_vars),
560
- $private_syms, $reduction_mod , $reduction_vars, type( $reduction_vars), $reduction_byref ,
561
- $reduction_syms) attr-dict
560
+ $private_syms, $private_needs_barrier , $reduction_mod, $reduction_vars,
561
+ type($reduction_vars), $reduction_byref, $reduction_syms) attr-dict
562
562
}];
563
563
564
564
let hasVerifier = 1;
@@ -611,8 +611,8 @@ def SimdOp : OpenMP_Op<"simd", traits = [
611
611
612
612
let assemblyFormat = clausesAssemblyFormat # [{
613
613
custom<PrivateReductionRegion>($region, $private_vars, type($private_vars),
614
- $private_syms, $reduction_mod , $reduction_vars, type( $reduction_vars), $reduction_byref ,
615
- $reduction_syms) attr-dict
614
+ $private_syms, $private_needs_barrier , $reduction_mod, $reduction_vars,
615
+ type($reduction_vars), $reduction_byref, $reduction_syms) attr-dict
616
616
}];
617
617
618
618
let hasVerifier = 1;
@@ -690,7 +690,7 @@ def DistributeOp : OpenMP_Op<"distribute", traits = [
690
690
691
691
let assemblyFormat = clausesAssemblyFormat # [{
692
692
custom<PrivateRegion>($region, $private_vars, type($private_vars),
693
- $private_syms) attr-dict
693
+ $private_syms, $private_needs_barrier ) attr-dict
694
694
}];
695
695
696
696
let hasVerifier = 1;
@@ -740,7 +740,7 @@ def TaskOp
740
740
custom<InReductionPrivateRegion>(
741
741
$region, $in_reduction_vars, type($in_reduction_vars),
742
742
$in_reduction_byref, $in_reduction_syms, $private_vars,
743
- type($private_vars), $private_syms) attr-dict
743
+ type($private_vars), $private_syms, $private_needs_barrier ) attr-dict
744
744
}];
745
745
746
746
let hasVerifier = 1;
@@ -816,8 +816,9 @@ def TaskloopOp : OpenMP_Op<"taskloop", traits = [
816
816
custom<InReductionPrivateReductionRegion>(
817
817
$region, $in_reduction_vars, type($in_reduction_vars),
818
818
$in_reduction_byref, $in_reduction_syms, $private_vars,
819
- type($private_vars), $private_syms, $reduction_mod, $reduction_vars,
820
- type($reduction_vars), $reduction_byref, $reduction_syms) attr-dict
819
+ type($private_vars), $private_syms, $private_needs_barrier,
820
+ $reduction_mod, $reduction_vars, type($reduction_vars),
821
+ $reduction_byref, $reduction_syms) attr-dict
821
822
}];
822
823
823
824
let extraClassDeclaration = [{
@@ -1324,7 +1325,7 @@ def TargetOp : OpenMP_Op<"target", traits = [
1324
1325
$host_eval_vars, type($host_eval_vars), $in_reduction_vars,
1325
1326
type($in_reduction_vars), $in_reduction_byref, $in_reduction_syms,
1326
1327
$map_vars, type($map_vars), $private_vars, type($private_vars),
1327
- $private_syms, $private_maps) attr-dict
1328
+ $private_syms, $private_needs_barrier, $ private_maps) attr-dict
1328
1329
}];
1329
1330
1330
1331
let hasVerifier = 1;
0 commit comments