[fir] Update fir.array_update, fir.array_fetch and fir.array_merge_store
authorEric Schweitz <eschweitz@nvidia.com>
Thu, 30 Sep 2021 07:55:45 +0000 (09:55 +0200)
committerValentin Clement <clementval@gmail.com>
Thu, 30 Sep 2021 07:56:50 +0000 (09:56 +0200)
commit34d6c1822eebe2c69c850e14d48e986a5b68cbd6
tree7f439103638e8c07ae0c4327e1c7ee54c8cb949c
parent87817bc523daba1d2bd0492144a5d6adba8a649c
[fir] Update fir.array_update, fir.array_fetch and fir.array_merge_store

Add typeparams to fir.array_update, fir.array_fetch and
fir.array_merge_store operations. Add optional slice operands to
fir.array_merge_store op.
Move verifiers to cpp file.

Reviewed By: kiranchandramohan

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

Co-authored-by: Valentin Clement <clementval@gmail.com>
flang/include/flang/Optimizer/Dialect/FIROps.td
flang/include/flang/Optimizer/Dialect/FIRType.h
flang/include/flang/Optimizer/Support/Utils.h [new file with mode: 0644]
flang/lib/Optimizer/Dialect/FIROps.cpp
flang/test/Fir/fir-ops.fir
flang/test/Fir/invalid.fir