[Mlir-commits] [mlir] 1bfc052 - [MLIR] Fix arith.cmpi assembly syntax in the doc to match the implementation (NFC)

Mehdi Amini llvmlistbot at llvm.org
Thu Aug 4 16:23:08 PDT 2022


Author: Kevin Gleason
Date: 2022-08-04T23:22:50Z
New Revision: 1bfc05270576d082a258481438993a393d171226

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

LOG: [MLIR] Fix arith.cmpi assembly syntax in the doc to match the implementation (NFC)

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td b/mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td
index 5d217a7a041d..9eb71cdde74c 100644
--- a/mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td
+++ b/mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td
@@ -1085,13 +1085,13 @@ def Arith_CmpIOp
 
     ```mlir
     // Custom form of scalar "signed less than" comparison.
-    %x = arith.cmpi "slt", %lhs, %rhs : i32
+    %x = arith.cmpi slt, %lhs, %rhs : i32
 
     // Generic form of the same operation.
     %x = "arith.cmpi"(%lhs, %rhs) {predicate = 2 : i64} : (i32, i32) -> i1
 
     // Custom form of vector equality comparison.
-    %x = arith.cmpi "eq", %lhs, %rhs : vector<4xi64>
+    %x = arith.cmpi eq, %lhs, %rhs : vector<4xi64>
 
     // Generic form of the same operation.
     %x = "arith.cmpi"(%lhs, %rhs) {predicate = 0 : i64}


        


More information about the Mlir-commits mailing list