[all-commits] [llvm/llvm-project] b85c39: [Flang][OpenMP] Initial lowering of the OpenMP wor...

kiranchandramohan via All-commits all-commits at lists.llvm.org
Fri May 6 05:00:49 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b85c39dd007858aac3edd915d802ff191bd58fe3
      https://github.com/llvm/llvm-project/commit/b85c39dd007858aac3edd915d802ff191bd58fe3
  Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
  Date:   2022-05-06 (Fri, 06 May 2022)

  Changed paths:
    M flang/lib/Lower/Bridge.cpp
    M flang/lib/Lower/OpenMP.cpp
    A flang/test/Lower/OpenMP/omp-wsloop.f90

  Log Message:
  -----------
  [Flang][OpenMP] Initial lowering of the OpenMP worksharing loop

The OpenMP worksharing loop operation in the dialect is a proper loop
operation and not a container of a loop. So we have to lower the
parse-tree OpenMP loop construct and the do-loop inside the construct
to a omp.wsloop operation and there should not be a fir.do_loop inside
it. This is achieved by skipping fir.do_loop creation and calling genFIR
for the nested evaluations in the lowering of the do construct.

Note: Handling of more clauses, parallel do, storage of loop index variable etc will come in separate patches.

Part of the upstreaming effort to move LLVM Flang from fir-dev branch of
https://github.com/flang-compiler/f18-llvm-project to the LLVM Project.

Reviewed By: peixin

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

Co-authored-by: Sourabh Singh Tomar <SourabhSingh.Tomar at amd.com>
Co-authored-by: Shraiysh Vaishay <Shraiysh.Vaishay at amd.com>




More information about the All-commits mailing list