[mlir][OpenMP] Added assemblyFormat for SectionsOp
authorShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Mon, 21 Feb 2022 07:20:58 +0000 (12:50 +0530)
committerShraiysh Vaishay <Shraiysh.Vaishay@amd.com>
Mon, 21 Feb 2022 07:31:49 +0000 (13:01 +0530)
commitc1e4e019454b38e3890589be977a3c2c445fefd1
treebee6afa75977d530058b4c8bdc4d97e581755dd0
parentc1f17b0a9ea0d467eaa9589cc28db2787efe3ebf
[mlir][OpenMP] Added assemblyFormat for SectionsOp

This patch adds assemblyFormat for omp.sections operation.

Some existing functions have been altered to fit the custom directive
in assemblyFormat. This has led to their callsites to get modified too,
but those will be removed in later patches, when other operations get
their assemblyFormat. All operations were not changed in one patch for
ease of review.

Reviewed By: Mogball

Differential Revision: https://reviews.llvm.org/D120176
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
mlir/test/Dialect/OpenMP/invalid.mlir
mlir/test/Dialect/OpenMP/ops.mlir