[mlir][Standard][NFC] Fix op documentation
authorJavier Setoain <javier.setoain@gmail.com>
Tue, 20 Apr 2021 17:46:41 +0000 (10:46 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Tue, 20 Apr 2021 17:48:07 +0000 (10:48 -0700)
A couple of standard op examples that use an outdated syntax need an
update.

Differential Revision: https://reviews.llvm.org/D100840

mlir/include/mlir/Dialect/StandardOps/IR/Ops.td

index 060062e..aaa5a8a 100644 (file)
@@ -1541,13 +1541,13 @@ def SignedDivIOp : IntBinaryOp<"divi_signed"> {
 
     ```mlir
     // Scalar signed integer division.
-    %a = divis %b, %c : i64
+    %a = divi_signed %b, %c : i64
 
     // SIMD vector element-wise division.
-    %f = divis %g, %h : vector<4xi32>
+    %f = divi_signed %g, %h : vector<4xi32>
 
     // Tensor element-wise integer division.
-    %x = divis %y, %z : tensor<4x?xi8>
+    %x = divi_signed %y, %z : tensor<4x?xi8>
     ```
   }];
   let hasFolder = 1;
@@ -1633,13 +1633,13 @@ def SignedRemIOp : IntBinaryOp<"remi_signed"> {
 
     ```mlir
     // Scalar signed integer division remainder.
-    %a = remis %b, %c : i64
+    %a = remi_signed %b, %c : i64
 
     // SIMD vector element-wise division remainder.
-    %f = remis %g, %h : vector<4xi32>
+    %f = remi_signed %g, %h : vector<4xi32>
 
     // Tensor element-wise integer division remainder.
-    %x = remis %y, %z : tensor<4x?xi8>
+    %x = remi_signed %y, %z : tensor<4x?xi8>
     ```
   }];
   let hasFolder = 1;
@@ -2194,13 +2194,13 @@ def UnsignedDivIOp : IntBinaryOp<"divi_unsigned"> {
 
     ```mlir
     // Scalar unsigned integer division.
-    %a = diviu %b, %c : i64
+    %a = divi_unsigned %b, %c : i64
 
     // SIMD vector element-wise division.
-    %f = diviu %g, %h : vector<4xi32>
+    %f = divi_unsigned %g, %h : vector<4xi32>
 
     // Tensor element-wise integer division.
-    %x = diviu %y, %z : tensor<4x?xi8>
+    %x = divi_unsigned %y, %z : tensor<4x?xi8>
     ```
   }];
   let hasFolder = 1;
@@ -2229,13 +2229,13 @@ def UnsignedRemIOp : IntBinaryOp<"remi_unsigned"> {
 
     ```mlir
     // Scalar unsigned integer division remainder.
-    %a = remiu %b, %c : i64
+    %a = remi_unsigned %b, %c : i64
 
     // SIMD vector element-wise division remainder.
-    %f = remiu %g, %h : vector<4xi32>
+    %f = remi_unsigned %g, %h : vector<4xi32>
 
     // Tensor element-wise integer division remainder.
-    %x = remiu %y, %z : tensor<4x?xi8>
+    %x = remi_unsigned %y, %z : tensor<4x?xi8>
     ```
   }];
   let hasFolder = 1;