[NFC] Restructured SimplifyIntrinsicsPass::getOrCreateFunction.
authorSlava Zakharin <szakharin@nvidia.com>
Tue, 9 Aug 2022 23:37:44 +0000 (16:37 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Wed, 10 Aug 2022 16:40:57 +0000 (09:40 -0700)
commit80dcc907a8a2de9c0e24d1d40625c54c828d508a
treed5a73f1da3c091981748f92f65584c281ae4d056
parent77d33f4c1b1be45a3473895e31e34065f11b3888
[NFC] Restructured SimplifyIntrinsicsPass::getOrCreateFunction.

I would like to add DOT_PRODUCT support in this pass, so this restructuring
is the first step to allow some code reuse inside getOrCreateFunction().

Differential Revision: https://reviews.llvm.org/D131530
flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp