[DRR] Allow interleaved operands and attributes
authorLei Zhang <antiagainst@google.com>
Tue, 22 Oct 2019 03:47:49 +0000 (20:47 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 22 Oct 2019 03:48:17 +0000 (20:48 -0700)
commit020f9eb68c8808c096228e20a40e5a217f4d2aab
treec9d7ba1fbfbdd2023d965f3cd07f30b570fa17ec
parentd9fe892e4228909908cf9b0f6dd80d9b56c060b4
[DRR] Allow interleaved operands and attributes

Previously DRR assumes attributes to appear after operands. This was the
previous requirements on ODS, but that has changed some time ago. Fix
DRR to also support interleaved operands and attributes.

PiperOrigin-RevId: 275983485
mlir/include/mlir/TableGen/Operator.h
mlir/lib/TableGen/Operator.cpp
mlir/test/lib/TestDialect/TestOps.td
mlir/test/mlir-tblgen/pattern.mlir
mlir/tools/mlir-tblgen/RewriterGen.cpp