[fir] Add the DoLoopHelper
authorEric Schweitz <eschweitz@nvidia.com>
Wed, 13 Oct 2021 19:46:18 +0000 (21:46 +0200)
committerValentin Clement <clementval@gmail.com>
Wed, 13 Oct 2021 19:48:45 +0000 (21:48 +0200)
commitbde89ac7f1dafb7b7900c52b0d441672ce19c749
treef8d6e77733b0f6780c9323010481798f05469cd1
parenta8a64eaafcacc9cd5979625280af1c1a46be2b2a
[fir] Add the DoLoopHelper

Add the DoLoopHelper. Some helpers functions
to create fir.do_loop operations.

This code was part of D111337 and was extracted in order to
make the patch easier to review.

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

Reviewed By: kiranchandramohan

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

Co-authored-by: Valentin Clement <clementval@gmail.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>
flang/include/flang/Optimizer/Builder/DoLoopHelper.h [new file with mode: 0644]
flang/include/flang/Optimizer/Builder/FIRBuilder.h [new file with mode: 0644]
flang/lib/Optimizer/Builder/CMakeLists.txt [new file with mode: 0644]
flang/lib/Optimizer/Builder/DoLoopHelper.cpp [new file with mode: 0644]
flang/lib/Optimizer/Builder/FIRBuilder.cpp [new file with mode: 0644]
flang/lib/Optimizer/CMakeLists.txt
flang/unittests/Optimizer/Builder/DoLoopHelperTest.cpp [new file with mode: 0644]
flang/unittests/Optimizer/CMakeLists.txt