[Mlir-commits] [mlir] [NFC][mlir][docs] Fix typos in TargetLLVMIR.md (PR #81549)
Ronan Keryell
llvmlistbot at llvm.org
Mon Feb 12 15:04:12 PST 2024
https://github.com/keryell created https://github.com/llvm/llvm-project/pull/81549
None
>From 62de8ad637cd8c29d86c89004752dfb2bb58ad2d Mon Sep 17 00:00:00 2001
From: Ronan Keryell <ronan.keryell at amd.com>
Date: Mon, 12 Feb 2024 14:51:57 -0800
Subject: [PATCH] [NFC][mlir][docs] Fix typos in TargetLLVMIR.md
---
mlir/docs/TargetLLVMIR.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mlir/docs/TargetLLVMIR.md b/mlir/docs/TargetLLVMIR.md
index 27a399c520647c..40e141ec698f6c 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,7 +349,7 @@ llvm.func @bar() {
%1 = llvm.mlir.constant(17 : i64) : i64
// call and extract the values from the structure
- %2 = llvm.call @bar(%0, %1)
+ %2 = llvm.call @foo(%0, %1)
: (i32, i32) -> !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