[Mlir-commits] [mlir] Fix typo in IRDL docs (PR #140460)

Noam Zaks llvmlistbot at llvm.org
Mon May 19 00:20:53 PDT 2025


https://github.com/noamzaks updated https://github.com/llvm/llvm-project/pull/140460

>From d39a9f2ab3a6e4cafa9dc51680f4ecb3ecb5b5cd Mon Sep 17 00:00:00 2001
From: Noam Zaks <63877260+noamzaks at users.noreply.github.com>
Date: Sun, 18 May 2025 18:40:23 +0300
Subject: [PATCH 1/2] Update IRDLOps.td

---
 mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td b/mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td
index f3bc3497500e7..1508671485785 100644
--- a/mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td
+++ b/mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td
@@ -634,7 +634,7 @@ def IRDL_AllOfOp : IRDL_ConstraintOp<"all_of",
     ```
 
     The above program defines a type `complex` inside the dialect `cmath` that
-    can has one parameter that must be 32-bit long and a float (in other
+    can have one parameter that must be 32-bit long and a float (in other
     words, that must be `f32`).
   }];
 

>From b342715117f4af7848d5a2daff3fb1b0289f71af Mon Sep 17 00:00:00 2001
From: Noam Zaks <63877260+noamzaks at users.noreply.github.com>
Date: Mon, 19 May 2025 10:20:45 +0300
Subject: [PATCH 2/2] Apply suggestion from Mathieu

---
 mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td b/mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td
index 1508671485785..78b24ecd20773 100644
--- a/mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td
+++ b/mlir/include/mlir/Dialect/IRDL/IR/IRDLOps.td
@@ -597,7 +597,7 @@ def IRDL_AnyOfOp : IRDL_ConstraintOp<"any_of",
     ```
 
     The above program defines a type `complex` inside the dialect `cmath` that
-    can have a single type parameter that can be either `i32`, `i64`, `f32` or
+    has a single type parameter that can be either `i32`, `i64`, `f32` or
     `f64`.
   }];
 
@@ -634,7 +634,7 @@ def IRDL_AllOfOp : IRDL_ConstraintOp<"all_of",
     ```
 
     The above program defines a type `complex` inside the dialect `cmath` that
-    can have one parameter that must be 32-bit long and a float (in other
+    has one parameter that must be 32-bit long and a float (in other
     words, that must be `f32`).
   }];
 



More information about the Mlir-commits mailing list