[all-commits] [llvm/llvm-project] 597d85: [flang] OpenMP allocate directive parse tree fix

Ethan Luis McDonough via All-commits all-commits at lists.llvm.org
Fri May 5 12:55:40 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 597d8563cd66f23d857196bf135a0c513115ece2
      https://github.com/llvm/llvm-project/commit/597d8563cd66f23d857196bf135a0c513115ece2
  Author: Ethan Luis McDonough <ethanluismcdonough at gmail.com>
  Date:   2023-05-05 (Fri, 05 May 2023)

  Changed paths:
    M flang/lib/Parser/unparse.cpp
    M flang/lib/Semantics/canonicalize-omp.cpp
    M flang/lib/Semantics/resolve-directives.cpp
    A flang/test/Parser/OpenMP/allocate-tree-spec-part.f90
    A flang/test/Parser/OpenMP/allocate-tree.f90

  Log Message:
  -----------
  [flang] OpenMP allocate directive parse tree fix

Addresses the same issue as the following abandoned revision: D104391.

Rewrite leading declarative allocations so they are nested within their respective executable allocate directive

Original:
```
ExecutionPartConstruct -> OpenMPDeclarativeAllocate
ExecutionPartConstruct -> OpenMPDeclarativeAllocate
ExecutionPartConstruct -> OpenMPExecutableAllocate
```

After rewriting:
```
ExecutionPartConstruct -> OpenMPExecutableAllocate
| ExecutionPartConstruct -> OpenMPDeclarativeAllocate
| ExecutionPartConstruct -> OpenMPDeclarativeAllocate
```

Co-authored-by: Isaac Perry <isaac.perry at arm.com>

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D148409




More information about the All-commits mailing list