Replace the verifyUnusedValue directive with HasNoUseOf constraint
authorLei Zhang <antiagainst@google.com>
Thu, 1 Aug 2019 18:50:47 +0000 (11:50 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 1 Aug 2019 18:51:15 +0000 (11:51 -0700)
commitc72d849eb9b416511c846e5baadb9270075acd2f
tree3529c2f1bc18750f48e7c7244e93afd72e892ba3
parent88b175eea5074812964a74add311fad6fd917fa2
Replace the verifyUnusedValue directive with HasNoUseOf constraint

verifyUnusedValue is a bit strange given that it is specified in a
result pattern but used to generate match statements. Now we are
able to support multi-result ops better, we can retire it and replace
it with a HasNoUseOf constraint. This reduces the number of mechanisms.

PiperOrigin-RevId: 261166863
mlir/include/mlir/IR/OpBase.td
mlir/include/mlir/TableGen/Constraint.h
mlir/include/mlir/TableGen/Pattern.h
mlir/lib/TableGen/Constraint.cpp
mlir/lib/TableGen/Pattern.cpp
mlir/test/lib/TestDialect/TestOps.td
mlir/test/mlir-tblgen/verify-unused-value.mlir [deleted file]
mlir/tools/mlir-tblgen/RewriterGen.cpp