[all-commits] [llvm/llvm-project] bf64cd: [flang][Lower] Convert OMP Map and related functio...

Krzysztof Parzyszek via All-commits all-commits at lists.llvm.org
Fri Feb 23 06:16:31 PST 2024


  Branch: refs/heads/users/kparzysz/spr/b04-rep2
  Home:   https://github.com/llvm/llvm-project
  Commit: bf64cd32fdba5af2b40c36c801228adf6ef53405
      https://github.com/llvm/llvm-project/commit/bf64cd32fdba5af2b40c36c801228adf6ef53405
  Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
  Date:   2024-02-23 (Fri, 23 Feb 2024)

  Changed paths:
    M flang/include/flang/Evaluate/tools.h
    M flang/lib/Lower/DirectivesCommon.h
    M flang/lib/Lower/OpenACC.cpp
    M flang/lib/Lower/OpenMP/ClauseProcessor.cpp
    M flang/lib/Lower/OpenMP/ClauseProcessor.h
    M flang/lib/Lower/OpenMP/OpenMP.cpp

  Log Message:
  -----------
  [flang][Lower] Convert OMP Map and related functions to evaluate::Expr

The related functions are `gatherDataOperandAddrAndBounds` and
`genBoundsOps`. The former is used in OpenACC as well, and it was
updated to pass evaluate::Expr instead of parser objects.

The difference in the test case comes from unfolded conversions
of index expressions, which are explicitly of type integer(kind=8).

Delete now unused `findRepeatableClause2` and `findClause2`.

Add `AsGenericExpr` that takes std::optional. It already returns optional
Expr. Making it accept an optional Expr as input would reduce the number
of necessary checks when handling frequent optional values in evaluator.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list