[flang-commits] [flang] [flang][OpenMP] Move nested eval conversion to OpenMP.cpp, NFC (PR #75502)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Thu Dec 14 10:33:38 PST 2023


kparzysz wrote:

The change here is from
```
// --- Bridge.cpp
genFIR(OpenMPConstruct &omp) {
  pushScope();
  genOpenMPConstruct(omp);

  genFIR(nested_evals);
  popScope();
}

// --- OpenMP.cpp
genOpenMPConstruct(OpenMPConstruct &omp) {
  visit(omp);
}
```
to
```
// --- Bridge.cpp
genFIR(OpenMPConstruct &omp) {
  genOpenMPConstruct(omp);
}

// --- OpenMP.cpp
genOMP(OpenMPConstruct &omp) {
  visit(omp);
}

genOpenMPConstruct(OpenMPConstruct &omp) {
  pushScope();              // Former genFIR code
  genOMP(omp);              // .

  genEval(nested_evals);    // .
  popScope();               // .
}
```

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


More information about the flang-commits mailing list