This patch update the fir::isUnlimitedPolymorphicType function
to reflect the chosen design. It adds also a fir::isPolymorphicType
function.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks good to me, but logic depends on your answer about TYPE(*) in D135141 (if should be fir.box<None> or fir.class<None, assumed type>).
Comment Actions
So in that case, if we use fir.box<none> for TYPE(*), the function should return true since assumed type entities are unlimited polymorphic. Since we are using fir.box<none> in the lowering currently with any boxed entities, they will all get a true return for isUnlimitedPolymorphic. I don't think that is a real issue but I just wanted to raise it.