[Mlir-commits] [mlir] f1b2865 - [mlir][docs] Fix typos in TargetLLVMIR.md (#81549)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Feb 14 03:26:52 PST 2024


Author: Ronan Keryell
Date: 2024-02-14T13:26:48+02:00
New Revision: f1b2865b6a61e570d3c7d88c5a84bbd1a046a203

URL: https://github.com/llvm/llvm-project/commit/f1b2865b6a61e570d3c7d88c5a84bbd1a046a203
DIFF: https://github.com/llvm/llvm-project/commit/f1b2865b6a61e570d3c7d88c5a84bbd1a046a203.diff

LOG: [mlir][docs] Fix typos in TargetLLVMIR.md (#81549)

Added: 
    

Modified: 
    mlir/docs/TargetLLVMIR.md

Removed: 
    


################################################################################
diff  --git a/mlir/docs/TargetLLVMIR.md b/mlir/docs/TargetLLVMIR.md
index 27a399c520647c..df281f65768e8c 100644
--- a/mlir/docs/TargetLLVMIR.md
+++ b/mlir/docs/TargetLLVMIR.md
@@ -336,7 +336,7 @@ func.func @bar() {
 // is transformed into
 
 llvm.func @foo(%arg0: i32, %arg1: i64) -> !llvm.struct<(i32, i64)> {
-  // insert the vales into a structure
+  // insert the values into a structure
   %0 = llvm.mlir.undef : !llvm.struct<(i32, i64)>
   %1 = llvm.insertvalue %arg0, %0[0] : !llvm.struct<(i32, i64)>
   %2 = llvm.insertvalue %arg1, %1[1] : !llvm.struct<(i32, i64)>
@@ -349,8 +349,8 @@ llvm.func @bar() {
   %1 = llvm.mlir.constant(17 : i64) : i64
 
   // call and extract the values from the structure
-  %2 = llvm.call @bar(%0, %1)
-     : (i32, i32) -> !llvm.struct<(i32, i64)>
+  %2 = llvm.call @foo(%0, %1)
+     : (i32, i64) -> !llvm.struct<(i32, i64)>
   %3 = llvm.extractvalue %2[0] : !llvm.struct<(i32, i64)>
   %4 = llvm.extractvalue %2[1] : !llvm.struct<(i32, i64)>
 


        


More information about the Mlir-commits mailing list