Prepare for inlining of SUM intrinsic
authorMats Petersson <mats.petersson@arm.com>
Fri, 29 Apr 2022 14:24:37 +0000 (15:24 +0100)
committerMats Petersson <mats.petersson@arm.com>
Thu, 4 Aug 2022 19:56:19 +0000 (20:56 +0100)
commit6e193b5cbb6d7591280e4d03a658bb11f9fcd4d9
treefaa3e5d21fc415dc2f6bc15ef295a3a8719649da
parent6ff873ac8689be44c2c53b828f75d58fbd0b633d
Prepare for inlining of SUM intrinsic

Find calls to FortranASum{Real8,Integer4}, check for dim and mask
arguments being absent - then produce an inlineable simple
version of the sum function.

(No longer a prototype, please review for push to llvm/main - not sure how to make Phabricator update the review with actual commit message)

Reviewed By: peixin, awarzynski

Differential Revision: https://reviews.llvm.org/D125407
flang/include/flang/Optimizer/Transforms/Passes.h
flang/include/flang/Optimizer/Transforms/Passes.td
flang/lib/Optimizer/Transforms/CMakeLists.txt
flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp [new file with mode: 0644]
flang/test/Transforms/simplifyintrinsics.fir [new file with mode: 0644]