[fir] Add the abstract result conversion pass
authorValentin Clement <clementval@gmail.com>
Mon, 11 Oct 2021 08:09:31 +0000 (10:09 +0200)
committerValentin Clement <clementval@gmail.com>
Mon, 11 Oct 2021 08:10:41 +0000 (10:10 +0200)
commitb0eef1eef0500315bf74721dda3d7a8e3c6a6eac
tree3de5fc2da6e382f8f3007cfec038b62575099191
parent83ded5d3239170a430e49cde80ea40e68b9af230
[fir] Add the abstract result conversion pass

Add pass that convert abstract result to function argument.
This pass is needed before the conversion to LLVM IR.

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

Reviewed By: schweitz

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

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
flang/include/flang/Optimizer/Transforms/Passes.h
flang/include/flang/Optimizer/Transforms/Passes.td
flang/lib/Optimizer/Dialect/FIROps.cpp
flang/lib/Optimizer/Transforms/AbstractResult.cpp [new file with mode: 0644]
flang/lib/Optimizer/Transforms/CMakeLists.txt
flang/test/Fir/abstract-results.fir [new file with mode: 0644]