[Mlir-commits] [mlir] 7a6627b - [OpenMP][MLIR] Add assembly format for master op
Kiran Chandramohan
llvmlistbot at llvm.org
Thu Sep 24 01:02:44 PDT 2020
Author: Kiran Chandramohan
Date: 2020-09-24T08:58:46+01:00
New Revision: 7a6627b83539cc3b7970764e96dcfc2c9607b47f
URL: https://github.com/llvm/llvm-project/commit/7a6627b83539cc3b7970764e96dcfc2c9607b47f
DIFF: https://github.com/llvm/llvm-project/commit/7a6627b83539cc3b7970764e96dcfc2c9607b47f.diff
LOG: [OpenMP][MLIR] Add assembly format for master op
Reviewed By: SouraVX, kiranktp
Differential Revision: https://reviews.llvm.org/D87549
Added:
Modified:
mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
mlir/test/Dialect/OpenMP/ops.mlir
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
index 3ac7f2c5dda5..ae0a5f3b6faa 100644
--- a/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+++ b/mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
@@ -138,6 +138,8 @@ def MasterOp : OpenMP_Op<"master"> {
}];
let regions = (region AnyRegion:$region);
+
+ let assemblyFormat = "$region attr-dict";
}
//===----------------------------------------------------------------------===//
diff --git a/mlir/test/Dialect/OpenMP/ops.mlir b/mlir/test/Dialect/OpenMP/ops.mlir
index e3e7afaff541..cfcfe0db2a15 100644
--- a/mlir/test/Dialect/OpenMP/ops.mlir
+++ b/mlir/test/Dialect/OpenMP/ops.mlir
@@ -8,10 +8,11 @@ func @omp_barrier() -> () {
func @omp_master() -> () {
// CHECK: omp.master
- "omp.master" ()({
+ omp.master {
// CHECK: omp.terminator
omp.terminator
- }):()->()
+ }
+
return
}
More information about the Mlir-commits
mailing list