Skip to content

Commit 45dbcc8

Browse files
committed
try fixing the assembly forma of barrier
1 parent 845188d commit 45dbcc8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

mlir/include/mlir/Dialect/MPI/IR/MPIOps.td

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,18 @@ def MPI_Barrier : MPI_Op<"barrier", []> {
328328

329329
let results = (outs Optional<MPI_Retval>:$retval);
330330

331-
let assemblyFormat = "(`(` $comm ^ `)`)? attr-dict (`:` type($retval) ^)?";
331+
// TODO fix assembly format
332+
// let assemblyFormat = "("
333+
// "(attr-dict) ^"
334+
// "(attr-dict `:` type($retval)) ^"
335+
// "(`(` $comm `)` attr-dict `:` type($comm)) ^"
336+
// "(`(` $comm `)` attr-dict `:` type($comm) `->` type($retval))"
337+
// ")?";
338+
let assemblyFormat = [{
339+
(`(` $comm ^ `)`)? attr-dict
340+
(`:` type($comm) ^ `->`):(`:`)?
341+
type(results)
342+
}];
332343
}
333344

334345
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)