[all-commits] [llvm/llvm-project] 82e91b: [flang][OpenMP] Move handling of OpenMP symbol fla...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Fri Dec 15 07:33:11 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82e91b91ca0ceab5ee977295540643ce67153f89
      https://github.com/llvm/llvm-project/commit/82e91b91ca0ceab5ee977295540643ce67153f89
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2023-12-15 (Fri, 15 Dec 2023)

  Changed paths:
    M flang/include/flang/Lower/OpenMP.h
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/OpenMP.cpp

  Log Message:
  -----------
  [flang][OpenMP] Move handling of OpenMP symbol flags to OpenMP.cpp (#75523)

The function `instantiateVariable` in Bridge.cpp has the following code:
```
  if (var.getSymbol().test(
          Fortran::semantics::Symbol::Flag::OmpThreadprivate))
    Fortran::lower::genThreadprivateOp(*this, var);

  if (var.getSymbol().test(
          Fortran::semantics::Symbol::Flag::OmpDeclareTarget))
    Fortran::lower::genDeclareTargetIntGlobal(*this, var);
```

Implement `handleOpenMPSymbolProperties` in OpenMP.cpp, move the above
code there, and have `instantiateVariable` call this function instead.

This would further separate OpenMP-related details into OpenMP.cpp.




More information about the All-commits mailing list