[flang-commits] [PATCH] D144026: [flang][runtime] Handle aliasing in Assign()

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Feb 14 09:34:19 PST 2023


klausler created this revision.
klausler added reviewers: clementval, jeanPerier.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jeroen.dobbelaere, jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

Detect and handle LHS/RHS aliasing when effecting intrinsic
assignments via the Assign() runtime function.

Also: don't apply special handling for allocatable LHS when calling
a user-defined type-bound ASSIGNMENT(=) generic procedure for a   
polymorphic type, and refactor some code into utility functions to
make Assign() more comprehensible.


https://reviews.llvm.org/D144026

Files:
  flang/include/flang/Runtime/assign.h
  flang/runtime/allocatable.cpp
  flang/runtime/assign-impl.h
  flang/runtime/assign.cpp
  flang/runtime/assign.h
  flang/runtime/derived-api.cpp
  flang/runtime/pointer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144026.497363.patch
Type: text/x-patch
Size: 21804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230214/1c3048bf/attachment-0001.bin>


More information about the flang-commits mailing list