[mlir] Printing oilist element
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Tue, 22 Mar 2022 04:38:33 +0000 (10:08 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Tue, 22 Mar 2022 05:18:03 +0000 (10:48 +0530)
commitddc90da478483437f26b4e27f8561cf37436a129
treea91d2cd7cae13efb3e78253939012b8041d5825a
parentf863df9a051095191d9ff63fbf97a12c80cd2c54
[mlir] Printing oilist element

This patch attempts to deduce when the oilist element must be printed
based on the optional arguments to it. This especially helps creating
an operation accurately because with the current implementation, the
inferred unit attributes must be manually added to print the clauses
appropriately.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D121579
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/test/IR/traits.mlir
mlir/test/lib/Dialect/Test/TestOps.td
mlir/tools/mlir-tblgen/OpFormatGen.cpp