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

This commit is contained in:
Kevin Gleason 2022-08-04 23:22:50 +00:00 committed by Mehdi Amini
parent e38b0fb008
commit 1bfc052705
1 changed files with 2 additions and 2 deletions

View File

@ -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}