Allow argument and result names replacement in predicates.
authorJacques Pienaar <jpienaar@google.com>
Thu, 30 May 2019 17:57:23 +0000 (10:57 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Sun, 2 Jun 2019 03:11:01 +0000 (20:11 -0700)
commit29073d999cd6c1c00bd3006a00c854235106ac91
tree14b347f697800b49d25c9d95aee14182107dd4e3
parent077bf9b2669d6f53715abe29da112921a7b3e50c
Allow argument and result names replacement in predicates.

    This allow specifying $x to refer to an operand's named argument (operand or attribute) or result. Skip variadic operands/results for now pending autogenerated discussion of their accessors.

    This adds a new predicate, following feedback on the naming but does not remove the old one. Post feedback I'll do that, potentially in follow up.

--

PiperOrigin-RevId: 250720003
mlir/include/mlir/IR/OpBase.td
mlir/test/TestDialect/TestOps.td
mlir/test/mlir-tblgen/types.mlir
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp