[flang-commits] [flang] [flang][WIP] Refactor ISO_FORTRAN_ENV to move kind arrays to global symbols (PR #89416)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Fri Apr 19 10:13:06 PDT 2024


klausler wrote:

> > The `REAL_KINDS` exported from `ISO_FORTRAN_ENV` is not a named constant after this change, right? So it would no longer work in a constant expression or initializer. That seems like a non-starter, if so.
> 
> Hm... You're right. So, this needs to go back to the drawing board... So, this needs to be fixed in code-gen, I guess.

Lowering doesn't seem like the right place, either.  What's necessary is compiling the modules into relocatable object files and incorporating them into the runtime support library.  The modules need to be compiled with target information in hand, anyway; their contents reflect the build host today.


https://github.com/llvm/llvm-project/pull/89416


More information about the flang-commits mailing list