[flang] automatically load FIR dialect with hlfir
authorTom Eccles <tom.eccles@arm.com>
Mon, 13 Feb 2023 18:03:44 +0000 (18:03 +0000)
committerTom Eccles <tom.eccles@arm.com>
Tue, 14 Feb 2023 13:44:58 +0000 (13:44 +0000)
commiteb436da6b8269407e03b6954319de77a082f4adf
tree761766131e5190eb02511269583c902e9fd1877d
parentddfabefe1be154acf9111f7ca19b2a6651b93c31
[flang] automatically load FIR dialect with hlfir

MLIR loads dialects lazily so if a hlfir type (or operation) is found
before any fir type (or operation), the fir dialect will not have been
loaded when the hlfir thing is verified. Verification of some hlfir
operations does depend on fir types (e.g. hlfir.sum needs
fir::SequenceType).

Tablegen change recommended by jeanPerier

Differential Revision: https://reviews.llvm.org/D143930
flang/include/flang/Optimizer/HLFIR/HLFIROpBase.td
flang/include/flang/Optimizer/HLFIR/HLFIROps.h