[mlir:PDL] Adjust the assembly format for AttributeOp to avoid conflicts with Diction...
authorRiver Riddle <riddleriver@gmail.com>
Fri, 10 Dec 2021 19:35:55 +0000 (19:35 +0000)
committerRiver Riddle <riddleriver@gmail.com>
Fri, 10 Dec 2021 19:38:42 +0000 (19:38 +0000)
commit98f5bd3489e68b65ae98d9424a24bc4c4ee021e7
tree2d33fb203d46e98d9bd664356db1883554de553a
parent9debc35f02e90352e49ae5ce7bcfb0b7a233d81a
[mlir:PDL] Adjust the assembly format for AttributeOp to avoid conflicts with DictionaryAttr

Switch the attribute creation operations to use attr-dict-with-
keyword to avoid conflicts (in the case of pdl.attribute) and
confusion(in the case of pdl_interp.create_attribute) with
having a DictionaryAttr as a value and specifying the
attributes of the operation itself (as a dictionary).

Differential Revision: https://reviews.llvm.org/D114815
mlir/include/mlir/Dialect/PDL/IR/PDLOps.td
mlir/include/mlir/Dialect/PDLInterp/IR/PDLInterpOps.td
mlir/test/Dialect/PDL/ops.mlir