[flang][fir] Add fir-opt tool
authorclementval <clementval@gmail.com>
Tue, 16 Feb 2021 16:48:20 +0000 (11:48 -0500)
committerclementval <clementval@gmail.com>
Tue, 16 Feb 2021 16:48:40 +0000 (11:48 -0500)
commit8260232cdd138d1357d308e43c33f0f16044f44c
tree7f83fc82cf67392c647682fa4da0e56d3535c16b
parent1e007cf43c50d4ed4b85e30d4a0416c137075b98
[flang][fir] Add fir-opt tool

This patch introduce the fir-opt tool. Similar to mlir-opt for FIR.
It will be used in following patches to test fir opt and round-trip.

Reviewed By: schweitz, mehdi_amini

Differential Revision: https://reviews.llvm.org/D96535
flang/test/CMakeLists.txt
flang/test/Fir/fir-ops.fir
flang/test/Fir/fir-types.fir
flang/tools/CMakeLists.txt
flang/tools/fir-opt/CMakeLists.txt [new file with mode: 0644]
flang/tools/fir-opt/fir-opt.cpp [new file with mode: 0644]