LLVM Flang - support
Hi everyone,
- [LLVM Flang] - https://github.com/llvm/llvm-project/tree/main/flang
- [Classic Flang] - https://github.com/flang-compiler/flang
I've noticed that CMake supports "Classic Flang" (link), but there is no support for "LLVM Flang" yet. Is this on anyone's roadmap?
We've been discussing this recently on flang-dev. Although "LLVM Flang" does not support code-generation yet, we'd like to make sure that it is fully supported in CMake once that's available. Also, we are ready to start experimenting with projects that use CMake, but for that we need CMake to be able tot identify "LLVM Flang".
In terms of implementation, "LLVM Flang" is consistent with Clang and defines the following macros that can be used for identification:
__flang__
__flang_major__
__flang_minor__
__flang_patchlevel__
I know that @tinlun123, who added support for "Classic Flang" in here, is already looking into this (link). I am actively working on LLVM Flang's compiler driver and am also available to help.
I'm creating this issue for better visibility and to make sure that the discussion is not limited to flang-dev.
Thank you, -Andrzej