File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ func.func @bar() {
336
336
// is transformed into
337
337
338
338
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
340
340
%0 = llvm.mlir.undef : !llvm.struct<(i32, i64)>
341
341
%1 = llvm.insertvalue %arg0, %0[0] : !llvm.struct<(i32, i64)>
342
342
%2 = llvm.insertvalue %arg1, %1[1] : !llvm.struct<(i32, i64)>
@@ -349,8 +349,8 @@ llvm.func @bar() {
349
349
%1 = llvm.mlir.constant(17 : i64) : i64
350
350
351
351
// 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)>
354
354
%3 = llvm.extractvalue %2[0] : !llvm.struct<(i32, i64)>
355
355
%4 = llvm.extractvalue %2[1] : !llvm.struct<(i32, i64)>
356
356
You can’t perform that action at this time.
0 commit comments