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).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Makes sense. Would adding let dependentDialects = ["fir::FIROpsDialect"]; in hlfir_Dialect declaration in [1] also work ?
If so, that is probably more in line with the tablegen dialect definition approach.