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.getDirectiveLoc(),
123 updateLoopOpParallelism(op,
s.isOrphanedLoopConstruct(),
124 s.getParentComputeConstructKind());
126 mlir::LogicalResult stmtRes = mlir::success();
129 mlir::Block &block = op.getRegion().emplaceBlock();
130 mlir::OpBuilder::InsertionGuard guardCase(builder);
131 builder.setInsertionPointToEnd(&block);
132 LexicalScope ls{*
this, start, builder.getInsertionBlock()};
133 ActiveOpenACCLoopRAII activeLoop{*
this, &op};
136 mlir::acc::YieldOp::create(builder, end);