Skip to content

Commit c78d3ae

Browse files
committed
Add expalanation comment for createCopyFun
1 parent 8a28e29 commit c78d3ae

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

flang/lib/Optimizer/OpenMP/LowerWorkshare.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,9 @@ static bool isSafeToParallelize(Operation *op) {
136136
isMemoryEffectFree(op);
137137
}
138138

139+
/// Simple shallow copies suffice for our purposes in this pass, so we implement
140+
/// this simpler alternative to the full fledged `createCopyFunc` in the
141+
/// frontend
139142
static mlir::func::FuncOp createCopyFunc(mlir::Location loc, mlir::Type varType,
140143
fir::FirOpBuilder builder) {
141144
mlir::ModuleOp module = builder.getModule();

0 commit comments

Comments
 (0)