[flang-commits] [PATCH] D157345: [flang] Fold MERGE() of derived type values

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Aug 7 15:33:06 PDT 2023


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
klausler requested review of this revision.

Generalize FoldMerge() to accommodate derived type arguments and results,
rename it into Folder<T>::MERGE(), and remove it from the various
FoldIntrinsicFunction() routines for intrinsic types.

Fixes llvm-test-suite/Fortran/gfortran/regression/merge_init_expr_2.f90.


https://reviews.llvm.org/D157345

Files:
  flang/lib/Evaluate/fold-character.cpp
  flang/lib/Evaluate/fold-complex.cpp
  flang/lib/Evaluate/fold-implementation.h
  flang/lib/Evaluate/fold-integer.cpp
  flang/lib/Evaluate/fold-logical.cpp
  flang/lib/Evaluate/fold-real.cpp
  flang/test/Evaluate/fold-merge.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157345.547980.patch
Type: text/x-patch
Size: 8242 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230807/0dd37cb0/attachment-0001.bin>


More information about the flang-commits mailing list