[OpenMP][MLIR] Add assembly format for master op

Reviewed By: SouraVX, kiranktp

Differential Revision: https://reviews.llvm.org/D87549
This commit is contained in:
Kiran Chandramohan 2020-09-11 21:38:25 +01:00
parent 99edb9b79c
commit 7a6627b835
2 changed files with 5 additions and 2 deletions

View File

@ -138,6 +138,8 @@ def MasterOp : OpenMP_Op<"master"> {
}]; }];
let regions = (region AnyRegion:$region); let regions = (region AnyRegion:$region);
let assemblyFormat = "$region attr-dict";
} }
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//

View File

@ -8,10 +8,11 @@ func @omp_barrier() -> () {
func @omp_master() -> () { func @omp_master() -> () {
// CHECK: omp.master // CHECK: omp.master
"omp.master" ()({ omp.master {
// CHECK: omp.terminator // CHECK: omp.terminator
omp.terminator omp.terminator
}):()->() }
return return
} }