[flang-commits] [PATCH] D153516: [flang][hlfir] user defined assignment codegen

Jean Perier via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Jun 22 03:16:02 PDT 2023


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

Add codegen support for hlfir.region_assign with user defined
assignment.

It is currently a bit pessimistic, because outside of forall, it
does not use the PURE aspect, if any, of the assignment routine to
rule out that the routine can write to something else than the LHS that
could overlap with the RHS.
However, the current lowering is anyway adding parenthesis around the
RHS, so this should not cause performance regressions.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153516

Files:
  flang/lib/Optimizer/HLFIR/Transforms/LowerHLFIROrderedAssignments.cpp
  flang/lib/Optimizer/HLFIR/Transforms/ScheduleOrderedAssignments.cpp
  flang/test/HLFIR/order_assignments/user-defined-assignment.fir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153516.533525.patch
Type: text/x-patch
Size: 19250 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230622/c9328644/attachment-0001.bin>


More information about the flang-commits mailing list