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

Mehdi Amini llvmlistbot at llvm.org
Thu Aug 4 16:15:52 PDT 2022


Author: Kevin Gleason
Date: 2022-08-04T23:15:36Z
New Revision: e38b0fb008e595d37e436c125d3e41acd7944d06

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

LOG: [MLIR] Fix arith.cmpf 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 a36ea682de312..5d217a7a041d2 100644
--- a/mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td
+++ b/mlir/include/mlir/Dialect/Arithmetic/IR/ArithmeticOps.td
@@ -1144,8 +1144,8 @@ def Arith_CmpFOp : Arith_CompareOp<"cmpf"> {
     Example:
 
     ```mlir
-    %r1 = arith.cmpf "oeq" %0, %1 : f32
-    %r2 = arith.cmpf "ult" %0, %1 : tensor<42x42xf64>
+    %r1 = arith.cmpf oeq, %0, %1 : f32
+    %r2 = arith.cmpf ult, %0, %1 : tensor<42x42xf64>
     %r3 = "arith.cmpf"(%0, %1) {predicate: 0} : (f8, f8) -> i1
     ```
   }];


        


More information about the Mlir-commits mailing list