This patch changes the syntax of arith.cmpi and arith.cmpf to be
%0 = arith.cmpi uge(%a, %b) {} : i32 %1 = arith.cmpf olt(%c, %d) {} : f32
The previous syntax was awkward because it made the predicate look like
it was an operand.
These regexes were used to make the majority of the changes
cmp(i|f) *"?([a-z]+)"? *, *([a-z%#A-Z\[\]\{\}\.\*_:0-9\+]+) *, *([a-z%#A-Z\[\]\{\}\.\*_:0-9\+]+) cmp$1 $2($3, $4)
Followed by
cmp(i|f) *"?([a-z]+)"? *, *([a-z%#A-Z\[\]\{\}\.\*_:\+0-9]+) * cmp$1 $2($3
The rest were cleaned up by hand by searching for cmp(i|f) *[a-z]+ *,