[all-commits] [llvm/llvm-project] a52724: [flang][acc] allow and ignore DIR between ACC and ...

jeanPerier via All-commits all-commits at lists.llvm.org
Thu Aug 29 23:28:00 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a527248a3c2d638b0c92a06992f3f1c1f80842ad
      https://github.com/llvm/llvm-project/commit/a527248a3c2d638b0c92a06992f3f1c1f80842ad
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2024-08-30 (Fri, 30 Aug 2024)

  Changed paths:
    M flang/lib/Lower/OpenACC.cpp
    M flang/lib/Semantics/canonicalize-acc.cpp
    M flang/lib/Semantics/canonicalize-directives.cpp
    A flang/test/Lower/OpenACC/acc-loop-and-cpu-dir.f90
    M flang/test/Semantics/loop-directives.f90

  Log Message:
  -----------
  [flang][acc] allow and ignore DIR between ACC and loops (#106522)

The current pattern was failing OpenACC semantics in acc parse tree
canonicalization:

```
!acc loop
!dir vector aligned
do i=1,n
...
```

Fix it by moving the directive before the OpenACC construct node.

Note that I think it could make sense to propagate the $dir info to the
acc.loop, at least with classic flang, the $dir seems to make a
difference. This is not done here since few directives are supported
anyway.



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