Skip to content

Commit 0c3e331

Browse files
author
Razvan Lupusoru
committed
Ensure that combined appears first on acc.loop
1 parent da8991e commit 0c3e331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,9 +2197,9 @@ def OpenACC_LoopOp : OpenACC_Op<"loop",
21972197

21982198
let hasCustomAssemblyFormat = 1;
21992199
let assemblyFormat = [{
2200+
( `combined` `(` custom<CombinedConstructsLoop>($combined)^ `)` )?
22002201
oilist(
2201-
`combined` `(` custom<CombinedConstructsLoop>($combined) `)`
2202-
| `gang` `` custom<GangClause>($gangOperands, type($gangOperands),
2202+
`gang` `` custom<GangClause>($gangOperands, type($gangOperands),
22032203
$gangOperandsArgType, $gangOperandsDeviceType,
22042204
$gangOperandsSegments, $gang)
22052205
| `worker` `` custom<DeviceTypeOperandsWithKeywordOnly>(

0 commit comments

Comments
 (0)