Skip to content

Commit f1b2865

Browse files
authored
[mlir][docs] Fix typos in TargetLLVMIR.md (#81549)
1 parent ca56966 commit f1b2865

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/docs/TargetLLVMIR.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ func.func @bar() {
336336
// is transformed into
337337
338338
llvm.func @foo(%arg0: i32, %arg1: i64) -> !llvm.struct<(i32, i64)> {
339-
// insert the vales into a structure
339+
// insert the values into a structure
340340
%0 = llvm.mlir.undef : !llvm.struct<(i32, i64)>
341341
%1 = llvm.insertvalue %arg0, %0[0] : !llvm.struct<(i32, i64)>
342342
%2 = llvm.insertvalue %arg1, %1[1] : !llvm.struct<(i32, i64)>
@@ -349,8 +349,8 @@ llvm.func @bar() {
349349
%1 = llvm.mlir.constant(17 : i64) : i64
350350
351351
// call and extract the values from the structure
352-
%2 = llvm.call @bar(%0, %1)
353-
: (i32, i32) -> !llvm.struct<(i32, i64)>
352+
%2 = llvm.call @foo(%0, %1)
353+
: (i32, i64) -> !llvm.struct<(i32, i64)>
354354
%3 = llvm.extractvalue %2[0] : !llvm.struct<(i32, i64)>
355355
%4 = llvm.extractvalue %2[1] : !llvm.struct<(i32, i64)>
356356

0 commit comments

Comments
 (0)