[all-commits] [llvm/llvm-project] 755535: [flang][runtime] Handle aliasing in Assign()

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Feb 14 09:54:36 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 755535b5eb5f6d60e9cc347cecd9e057231b92bb
      https://github.com/llvm/llvm-project/commit/755535b5eb5f6d60e9cc347cecd9e057231b92bb
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-02-14 (Tue, 14 Feb 2023)

  Changed paths:
    M flang/include/flang/Runtime/assign.h
    M flang/runtime/allocatable.cpp
    A flang/runtime/assign-impl.h
    M flang/runtime/assign.cpp
    R flang/runtime/assign.h
    M flang/runtime/derived-api.cpp
    M flang/runtime/pointer.cpp

  Log Message:
  -----------
  [flang][runtime] Handle aliasing in Assign()

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.

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




More information about the All-commits mailing list