[all-commits] [llvm/llvm-project] 8926f0: [flang] Fold MERGE() of derived type values
Peter Klausler via All-commits
all-commits at lists.llvm.org
Tue Aug 8 12:10:38 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8926f0fe62a55fc0de7d6839700513328bc0e13f
https://github.com/llvm/llvm-project/commit/8926f0fe62a55fc0de7d6839700513328bc0e13f
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2023-08-08 (Tue, 08 Aug 2023)
Changed paths:
M flang/lib/Evaluate/fold-character.cpp
M flang/lib/Evaluate/fold-complex.cpp
M flang/lib/Evaluate/fold-implementation.h
M flang/lib/Evaluate/fold-integer.cpp
M flang/lib/Evaluate/fold-logical.cpp
M flang/lib/Evaluate/fold-real.cpp
A flang/test/Evaluate/fold-merge.f90
Log Message:
-----------
[flang] Fold MERGE() of derived type values
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.
Differential Revision: https://reviews.llvm.org/D157345
More information about the All-commits
mailing list