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

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


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5faf45a3d24e603cbc8fe4eb45da386653dae5e5
      https://github.com/llvm/llvm-project/commit/5faf45a3d24e603cbc8fe4eb45da386653dae5e5
  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
```

Reviewed By: kiranchandramohan

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




More information about the All-commits mailing list