[flang] Add more diagnostics to fir.coordinate_of
authorValentin Clement <clementval@gmail.com>
Tue, 21 Jun 2022 18:42:43 +0000 (20:42 +0200)
committerValentin Clement <clementval@gmail.com>
Tue, 21 Jun 2022 18:43:22 +0000 (20:43 +0200)
commitc67a87444f5585aafa659c52544ac912f283e7e3
tree7aaed6c5b04784f581993c075c59a8b27f725da2
parent43913357b47d01801466b5a27ff2955f1865ed43
[flang] Add more diagnostics to fir.coordinate_of

Add more diagnostics to fir.coordinate_of to provide better checking
that the IR is sane.

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

Reviewed By: PeteSteinfeld

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

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
flang/include/flang/Optimizer/Dialect/FIROps.td
flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp
flang/lib/Optimizer/Dialect/FIROps.cpp
flang/test/Fir/Todo/coordinate_of_1.fir [deleted file]
flang/test/Fir/Todo/coordinate_of_5.fir [deleted file]
flang/test/Fir/Todo/coordinate_of_6.fir [deleted file]
flang/test/Fir/convert-to-llvm.fir
flang/test/Fir/coordinate_of_1.fir [new file with mode: 0644]
flang/test/Fir/coordinateof.fir [new file with mode: 0644]
flang/test/Fir/invalid.fir