57 mlir::Location start =
getLoc(
s.getSourceRange().getBegin());
58 mlir::Location end =
getLoc(
s.getSourceRange().getEnd());
61 auto op = LoopOp::create(builder, start, retTy, operands);
120 emitOpenACCClauses(op,
s.getDirectiveKind(),
s.clauses());
122 updateLoopOpParallelism(op,
s.isOrphanedLoopConstruct(),
123 s.getParentComputeConstructKind());
125 mlir::LogicalResult stmtRes = mlir::success();
128 mlir::Block &block = op.getRegion().emplaceBlock();
129 mlir::OpBuilder::InsertionGuard guardCase(builder);
130 builder.setInsertionPointToEnd(&block);
131 LexicalScope ls{*
this, start, builder.getInsertionBlock()};
132 ActiveOpenACCLoopRAII activeLoop{*
this, &op};
135 mlir::acc::YieldOp::create(builder, end);