@@ -102,13 +102,13 @@ def MPI_SendOp : MPI_Op<"send", []> {
102102 let arguments = (
103103 ins AnyMemRef : $ref,
104104 I32 : $tag,
105- I32 : $rank
105+ I32 : $dest
106106 );
107107
108108 let results = (outs Optional<MPI_Retval>:$retval);
109109
110- let assemblyFormat = "`(` $ref `,` $tag `,` $rank `)` attr-dict `:` "
111- "type($ref) `,` type($tag) `,` type($rank )"
110+ let assemblyFormat = "`(` $ref `,` $tag `,` $dest `)` attr-dict `:` "
111+ "type($ref) `,` type($tag) `,` type($dest )"
112112 "(`->` type($retval)^)?";
113113 let hasCanonicalizer = 1;
114114}
@@ -154,11 +154,11 @@ def MPI_ISendOp : MPI_Op<"isend", []> {
154154//===----------------------------------------------------------------------===//
155155
156156def MPI_RecvOp : MPI_Op<"recv", []> {
157- let summary = "Equivalent to `MPI_Recv(ptr, size, dtype, dest , tag, "
157+ let summary = "Equivalent to `MPI_Recv(ptr, size, dtype, source , tag, "
158158 "MPI_COMM_WORLD, MPI_STATUS_IGNORE)`";
159159 let description = [{
160160 MPI_Recv performs a blocking receive of `size` elements of type `dtype`
161- from rank `dest `. The `tag` value and communicator enables the library to
161+ from rank `source `. The `tag` value and communicator enables the library to
162162 determine the matching of multiple sends and receives between the same
163163 ranks.
164164
@@ -172,13 +172,13 @@ def MPI_RecvOp : MPI_Op<"recv", []> {
172172
173173 let arguments = (
174174 ins AnyMemRef : $ref,
175- I32 : $tag, I32 : $rank
175+ I32 : $tag, I32 : $source
176176 );
177177
178178 let results = (outs Optional<MPI_Retval>:$retval);
179179
180- let assemblyFormat = "`(` $ref `,` $tag `,` $rank `)` attr-dict `:`"
181- "type($ref) `,` type($tag) `,` type($rank )"
180+ let assemblyFormat = "`(` $ref `,` $tag `,` $source `)` attr-dict `:` "
181+ "type($ref) `,` type($tag) `,` type($source )"
182182 "(`->` type($retval)^)?";
183183 let hasCanonicalizer = 1;
184184}
0 commit comments