Skip to content

Commit 5b404f6

Browse files
committed
Rebase on top of new changes
1 parent 5ea199a commit 5b404f6

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

flang/lib/Lower/OpenMP/OpenMP.cpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,8 +1916,7 @@ static void genCompositeDoSimd(Fortran::lower::AbstractConverter &converter,
19161916
// When support for vectorization is enabled, then we need to add handling of
19171917
// if clause. Currently if clause can be skipped because we always assume
19181918
// SIMD length = 1.
1919-
genWsloopOp(converter, symTable, semaCtx, eval, loc, item->clauses, queue,
1920-
item);
1919+
genWsloopOp(converter, symTable, semaCtx, eval, loc, queue, item);
19211920
}
19221921

19231922
static void
@@ -1969,8 +1968,7 @@ static void genOMPDispatch(Fortran::lower::AbstractConverter &converter,
19691968
/*outerCombined=*/false);
19701969
break;
19711970
case llvm::omp::Directive::OMPD_section:
1972-
genSectionOp(converter, symTable, semaCtx, eval, loc, /*clauses=*/{}, queue,
1973-
item);
1971+
genSectionOp(converter, symTable, semaCtx, eval, loc, queue, item);
19741972
break;
19751973
case llvm::omp::Directive::OMPD_sections:
19761974
genSectionsOp(converter, symTable, semaCtx, eval, loc, queue, item);
@@ -2170,8 +2168,8 @@ static void genOMP(Fortran::lower::AbstractConverter &converter,
21702168
eval, directive.source, directive.v, clauses)};
21712169
if (directive.v == llvm::omp::Directive::OMPD_ordered) {
21722170
// Standalone "ordered" directive.
2173-
genOrderedOp(converter, symTable, semaCtx, eval, currentLocation, clauses,
2174-
queue, queue.begin());
2171+
genOrderedOp(converter, symTable, semaCtx, eval, currentLocation, queue,
2172+
queue.begin());
21752173
} else {
21762174
// Dispatch handles the "block-associated" variant of "ordered".
21772175
genOMPDispatch(converter, symTable, semaCtx, eval, currentLocation, queue,
@@ -2203,7 +2201,7 @@ genOMP(Fortran::lower::AbstractConverter &converter,
22032201
converter.getFirOpBuilder().getModule(), semaCtx, eval, verbatim.source,
22042202
llvm::omp::Directive::OMPD_flush, clauses)};
22052203
genFlushOp(converter, symTable, semaCtx, eval, currentLocation, objects,
2206-
clauses, queue, queue.begin());
2204+
queue, queue.begin());
22072205
}
22082206

22092207
static void
@@ -2375,8 +2373,8 @@ genOMP(Fortran::lower::AbstractConverter &converter,
23752373

23762374
const auto &name = std::get<std::optional<Fortran::parser::Name>>(cd.t);
23772375
mlir::Location currentLocation = converter.getCurrentLocation();
2378-
genCriticalOp(converter, symTable, semaCtx, eval, currentLocation, clauses,
2379-
queue, queue.begin(), name);
2376+
genCriticalOp(converter, symTable, semaCtx, eval, currentLocation, queue,
2377+
queue.begin(), name);
23802378
}
23812379

23822380
static void

0 commit comments

Comments
 (0)