[flang-commits] [PATCH] D150564: [flang][hlfir] Implement hlfir.forall codegen when no temp is required

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon May 15 06:00:26 PDT 2023


jeanPerier created this revision.
jeanPerier added reviewers: tblah, vzakhari, clementval.
jeanPerier added a project: Flang.
Herald added subscribers: sunshaoce, mehdi_amini, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
jeanPerier requested review of this revision.

The patch applies the schedule built with the utility added in the
previous D150455 <https://reviews.llvm.org/D150455> patch to generate the code for an ordered assignment
tree. For now, it only supports forall that do not contain user defined
assignments or assignments to vector subscripted entities, and for
which the scheduling analysis does not require temporary storages.

Support for temporary, WHERE, and user-defined/vector subscript
assignment will be added in later patches.

This enables end-to-end support with HLFIR for forall where the schedule
analysis can prove there is no need to create temporary storage.

Depends on D150455 <https://reviews.llvm.org/D150455>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150564

Files:
  flang/lib/Optimizer/HLFIR/Transforms/LowerHLFIROrderedAssignments.cpp
  flang/test/HLFIR/order_assignments/forall-codegen-fuse-assignments.fir
  flang/test/HLFIR/order_assignments/forall-codegen-no-conflict.fir
  flang/test/HLFIR/ordered-assignments-codegen-todo.fir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150564.522150.patch
Type: text/x-patch
Size: 29798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230515/38eb85af/attachment-0001.bin>


More information about the flang-commits mailing list