[all-commits] [llvm/llvm-project] ae1623: [flang][Parser] Add a node for individual sections...

Shraiysh via All-commits all-commits at lists.llvm.org
Fri Mar 18 09:25:56 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae1623b30645fd9a3ded019114678d1c34af1621
      https://github.com/llvm/llvm-project/commit/ae1623b30645fd9a3ded019114678d1c34af1621
  Author: Shraiysh Vaishay <Shraiysh.Vaishay at amd.com>
  Date:   2022-03-18 (Fri, 18 Mar 2022)

  Changed paths:
    M flang/examples/FlangOmpReport/FlangOmpReportVisitor.cpp
    M flang/include/flang/Parser/dump-parse-tree.h
    M flang/include/flang/Parser/parse-tree.h
    M flang/lib/Lower/OpenMP.cpp
    M flang/lib/Parser/openmp-parsers.cpp
    M flang/lib/Parser/unparse.cpp
    M flang/lib/Semantics/check-omp-structure.cpp
    A flang/test/Examples/omp-sections.f90
    A flang/test/Lower/OpenMP/sections-pft.f90
    A flang/test/Parser/omp-sections.f90

  Log Message:
  -----------
  [flang][Parser] Add a node for individual sections in sections construct

This patch adds parser nodes for each indivudual section in sections
construct. This should help with the translation to FIR. `!$omp section`
was not recognized as a construct and hence needed special handling.

`OpenMPSectionsConstruct` contains a list of `OpenMPConstruct`. Each
such `OpenMPConstruct` wraps an `OpenMPSectionConstruct`
(section, not sections). An `OpenMPSectionConstruct` is a wrapper around
a `Block`.

Reviewed By: kiranchandramohan, peixin

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




More information about the All-commits mailing list