forked from OSchip/llvm-project
[OpenMP][MLIR] Add assembly format for master op
Reviewed By: SouraVX, kiranktp Differential Revision: https://reviews.llvm.org/D87549
This commit is contained in:
parent
99edb9b79c
commit
7a6627b835
|
@ -138,6 +138,8 @@ def MasterOp : OpenMP_Op<"master"> {
|
|||
}];
|
||||
|
||||
let regions = (region AnyRegion:$region);
|
||||
|
||||
let assemblyFormat = "$region attr-dict";
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -8,10 +8,11 @@ func @omp_barrier() -> () {
|
|||
|
||||
func @omp_master() -> () {
|
||||
// CHECK: omp.master
|
||||
"omp.master" ()({
|
||||
omp.master {
|
||||
// CHECK: omp.terminator
|
||||
omp.terminator
|
||||
}):()->()
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue