[flang-commits] [flang] [flang][OpenMP][NFC] Further refactoring for `genOpWithBody` & (PR #80839)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Tue Feb 6 07:40:44 PST 2024


================
@@ -2481,24 +2506,11 @@ static void genBodyOfTargetDataOp(
     genNestedEvaluations(converter, eval);
 }
 
-struct GenOpWithBodyInfo {
-  Fortran::lower::AbstractConverter &converter;
-  Fortran::lower::pft::Evaluation &eval;
-  bool genNested = false;
-  mlir::Location currentLocation;
-  bool outerCombined = false;
-  const Fortran::parser::OmpClauseList *clauseList = nullptr;
-};
-
 template <typename OpTy, typename... Args>
-static OpTy genOpWithBody(GenOpWithBodyInfo info, Args &&...args) {
+static OpTy genOpWithBody(OpWithBodyGenInfo info, Args &&...args) {
----------------
skatrak wrote:

```suggestion
static OpTy genOpWithBody(OpWithBodyGenInfo &info, Args &&...args) {
```

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


More information about the flang-commits mailing list