Update fir.insert_on_range syntax to make the range more explicit (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Tue, 23 Nov 2021 06:35:37 +0000 (06:35 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Wed, 24 Nov 2021 02:06:17 +0000 (02:06 +0000)
commit8ec0f221843c51096cf3e7a479e780be371388a8
tree681b1367c1aefbba32873ae53e6d4a7a5b7be01a
parent22ced33a2f769815834efdd0eb0b25172c6f8a61
Update fir.insert_on_range syntax to make the range more explicit (NFC)

Also replace ArrayAttr with IndexElementsAttr to model subscript dimensions.
An array of attribute is a sparse inefficient storage, with an API that
requires to unpack/repack integers at every call site.
Instead we can store dense array of integer as IndexElementsAttr.

Reviewed By: clementval, kiranchandramohan

Differential Revision: https://reviews.llvm.org/D112899
flang/include/flang/Optimizer/Dialect/FIROps.td
flang/lib/Optimizer/CodeGen/CodeGen.cpp
flang/lib/Optimizer/Dialect/FIROps.cpp
flang/test/Fir/convert-to-llvm.fir
flang/test/Fir/fir-ops.fir
flang/test/Fir/invalid.fir