Skip to content

Commit 8daabbe

Browse files
committed
Remove omp.workshare verifier
1 parent 616b2b4 commit 8daabbe

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,6 @@ def WorkshareOp : OpenMP_Op<"workshare", traits = [
307307
let builders = [
308308
OpBuilder<(ins CArg<"const WorkshareOperands &">:$clauses)>
309309
];
310-
311-
let hasVerifier = 1;
312310
}
313311

314312
def WorkshareLoopWrapperOp : OpenMP_Op<"workshare_loop_wrapper", traits = [

mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,10 +1698,6 @@ void WorkshareOp::build(OpBuilder &builder, OperationState &state,
16981698
WorkshareOp::build(builder, state, clauses.nowait);
16991699
}
17001700

1701-
LogicalResult WorkshareOp::verify() {
1702-
return (*this)->getRegion(0).getBlocks().size() == 1 ? success() : failure();
1703-
}
1704-
17051701
//===----------------------------------------------------------------------===//
17061702
// WsloopOp
17071703
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)