[Mlir-commits] [flang] [llvm] [mlir] [Flang][OpenMP] Add support for scope construct (PR #193098)
Tom Eccles
llvmlistbot at llvm.org
Thu Apr 23 04:10:46 PDT 2026
================
@@ -2899,6 +2899,31 @@ LogicalResult SectionsOp::verifyRegions() {
return success();
}
+//===----------------------------------------------------------------------===//
+// ScopeOp
+//===----------------------------------------------------------------------===//
+
+void ScopeOp::build(OpBuilder &builder, OperationState &state,
+ const ScopeOperands &clauses) {
+ MLIRContext *ctx = builder.getContext();
+ ScopeOp::build(builder, state, clauses.allocateVars, clauses.allocatorVars,
+ clauses.nowait, clauses.privateVars,
+ makeArrayAttr(ctx, clauses.privateSyms),
+ clauses.privateNeedsBarrier, clauses.reductionMod,
+ clauses.reductionVars,
+ makeDenseBoolArrayAttr(ctx, clauses.reductionByref),
+ makeArrayAttr(ctx, clauses.reductionSyms));
+}
+
+LogicalResult ScopeOp::verify() {
----------------
tblah wrote:
https://github.com/llvm/llvm-project/pull/193715
https://github.com/llvm/llvm-project/pull/193098
More information about the Mlir-commits
mailing list