[fir] Add fir reduction builder
authorValentin Clement <clementval@gmail.com>
Wed, 1 Dec 2021 07:59:52 +0000 (08:59 +0100)
committerValentin Clement <clementval@gmail.com>
Wed, 1 Dec 2021 08:01:12 +0000 (09:01 +0100)
commitf6ae8e8cc7f495dad86e97bd9bbd828f9079fc9b
tree1b227f72eb5683ed7cb61970a002d019d0543800
parentce22b7f17b6a8ccf09a07eb9bda964cf1b007e0d
[fir] Add fir reduction builder

This patch introduces a bunch of builder functions
to create function calls to runtime reduction functions.

This patch is part of the upstreaming effort from fir-dev branch.

This patch failed previously because a macro was missing.

Reviewed By: awarzynski

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

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: mleair <leairmark@gmail.com>
flang/include/flang/Optimizer/Builder/Runtime/RTBuilder.h
flang/include/flang/Optimizer/Builder/Runtime/Reduction.h [new file with mode: 0644]
flang/lib/Optimizer/Builder/CMakeLists.txt
flang/lib/Optimizer/Builder/Runtime/Reduction.cpp [new file with mode: 0644]
flang/unittests/Optimizer/Builder/Runtime/ReductionTest.cpp [new file with mode: 0644]
flang/unittests/Optimizer/Builder/Runtime/RuntimeCallTestBase.h
flang/unittests/Optimizer/CMakeLists.txt