Instead of calling _FortranASizeDim, we can instead load extent
directly from descriptor. Add this support for cases where dim
is a known constant at compile time.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Looks good. Can you just add a lit test for that in flang/test/Lower/Intrinsics/size.f90?
Comment Actions
Added lit test. Previously this test was calling _FortranASizeDim but now loads from descriptor directly.
clang-format not found in user’s local PATH; not linting file.