Skip to content

Commit a87e207

Browse files
committed
Use genWrapperOp()
1 parent 7c208f6 commit a87e207

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

flang/lib/Lower/OpenMP/OpenMP.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2004,11 +2004,13 @@ static void genCompositeDoSimd(lower::AbstractConverter &converter,
20042004
loopNestClauseOps, iv);
20052005

20062006
// Operation creation.
2007-
auto wsloopOp =
2008-
genWsloopWrapperOp(converter, semaCtx, eval, loc, wsloopClauseOps,
2009-
wsloopReductionSyms, wsloopReductionTypes);
2007+
// TODO: Add private variables to entry block arguments.
2008+
auto wsloopOp = genWrapperOp<mlir::omp::WsloopOp>(
2009+
converter, loc, wsloopClauseOps, wsloopReductionTypes);
20102010

2011-
auto simdOp = genSimdWrapperOp(converter, semaCtx, eval, loc, simdClauseOps);
2011+
// TODO: Populate entry block arguments with reduction and private variables.
2012+
auto simdOp = genWrapperOp<mlir::omp::SimdOp>(converter, loc, simdClauseOps,
2013+
/*blockArgTypes=*/{});
20122014

20132015
// Construct wrapper entry block list and associated symbols. It is important
20142016
// that the symbol and block argument order match, so that the symbol-value

0 commit comments

Comments
 (0)