[mlir] Generate CmpFPredicate as an EnumAttr in tablegen
authorRiver Riddle <riddleriver@gmail.com>
Tue, 3 Mar 2020 21:02:02 +0000 (13:02 -0800)
committerRiver Riddle <riddleriver@gmail.com>
Tue, 3 Mar 2020 21:19:25 +0000 (13:19 -0800)
commitc10896682d0bb457b9d77fdd753ed9e7e6806db1
tree6af2d683ce3249d97a3f210ab89d23fbc2d24deb
parent5d3a9959382762f84318b52f6ba6532cb8b5c807
[mlir] Generate CmpFPredicate as an EnumAttr in tablegen

Summary: This allows for attaching the attribute to CmpF as a proper argument, and thus enables the removal of a bunch of c++ code.

Differential Revision: https://reviews.llvm.org/D75539
mlir/include/mlir/Dialect/StandardOps/IR/Ops.h
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/IR/invalid-ops.mlir