[flang-commits] [flang] [Flang][OpenMP][Lower] Add lowering support of OpenMP distribute to MLIR (PR #67798)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Fri Jan 26 03:54:39 PST 2024


================
@@ -1490,6 +1493,19 @@ bool ClauseProcessor::processDeviceType(
   return false;
 }
 
+bool ClauseProcessor::processDistSchedule(
+    Fortran::lower::StatementContext &stmtCtx, mlir::UnitAttr &scheduleStatic,
+    mlir::Value &chunkSize) const {
+  if (auto *distScheduleClause = findUniqueClause<ClauseTy::DistSchedule>()) {
----------------
skatrak wrote:

The returned type is spelled out in the initialization expression here and all variables obtained from calling `Fortran::semantics::GetExpr` in this file use `auto` like below, so I prefer following the same approach.

https://github.com/llvm/llvm-project/pull/67798


More information about the flang-commits mailing list