Skip to content

[Flang][LLVM] Remove leftover CMake for old flang handling #137049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented Apr 23, 2025

Summary:
I'm pretty sure this LLVM variable is unused and flang is now a
first-class target. This can likely be replaced with the other
support for the OpenMP module files that we have.

Summary:
I'm pretty sure this LLVM variable is unused and `flang` is now a
first-class target. This can likely be replaced with the other
support for the OpenMP module files that we have.
@jhuber6 jhuber6 requested review from Meinersbur and mjklemm April 23, 2025 20:01
@Meinersbur
Copy link
Member

Without trying out, I think it is still needed. LLVM_TOOL_<project>_BUILD is set whenever LLVM_ENABLE_PROJECTS=<project>. extra_deps ensures that flang and the Fortran built modules are built before OpenMP tries to build omp_lib.mod using flang and the builtin modules. I don't know what you mean by "old flang handling"

@jhuber6
Copy link
Contributor Author

jhuber6 commented Apr 24, 2025

Without trying out, I think it is still needed. LLVM_TOOL_<project>_BUILD is set whenever LLVM_ENABLE_PROJECTS=<project>. extra_deps ensures that flang and the Fortran built modules are built before OpenMP tries to build omp_lib.mod using flang and the builtin modules. I don't know what you mean by "old flang handling"

I thought that handling was moved into the runtimes job itself as in #137035.

@Meinersbur
Copy link
Member

Do you mean #130975?

LLVM_ENABLE_RUNTIMES=openmp and LLVM_ENABLE_PROJECTS=openmp are both still supposed to work. It just fixed a dependency problem with LLVM_ENABLE_RUNTIMES=openmp (and updates some CMake messages to clarify that there are two ways to build it.

@jhuber6
Copy link
Contributor Author

jhuber6 commented Apr 25, 2025

Do you mean #130975?

LLVM_ENABLE_RUNTIMES=openmp and LLVM_ENABLE_PROJECTS=openmp are both still supposed to work. It just fixed a dependency problem with LLVM_ENABLE_RUNTIMES=openmp (and updates some CMake messages to clarify that there are two ways to build it.

Yeah, I figured that the only part we still needed was the dependency.

Copy link
Member

@Meinersbur Meinersbur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless you entirely remove support for LLVM_ENABLE_PROJECTS=openmp, this code in this PR is still needed.

@jhuber6
Copy link
Contributor Author

jhuber6 commented Apr 29, 2025

Unless you entirely remove support for LLVM_ENABLE_PROJECTS=openmp, this code in this PR is still needeed.

Well, it's been made a warning and will probably be an error by the time the release rolls out. But I guess we can delay this if needed.

@Meinersbur
Copy link
Member

When that happens, the entire code for omp_lib.mod generation in LLVM_ENABLE_PROJECTS=openmp builds should be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants