Skip to content

[OpenMP][omp_lib] Restore compatibility with more restrictive Fortran compilers #77780

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

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

pawosm-arm
Copy link
Contributor

The most recent changes to omp_lib.h.var have re-introduced some compatibility issues that had to be fixed due to the similar changes in the past. Namely:

  1. D120707 has removed the "use omp_lib_kinds" statement and replaced it with import

  2. D114537 added line continuation to the long lines

This patch introduces the same kind of changes in order to restore compatibility with some more restrictive Fortran compilers so their users could still benefit from the LLVM's OpenMP Fortran library.

… compilers

The most recent changes to `omp_lib.h.var` have re-introduced some
compatibility issues that had to be fixed due to the similar changes in
the past. Namely:

1. D120707 has removed the "use omp_lib_kinds" statement and replaced
   it with import

2. D114537 added line continuation to the long lines

This patch introduces the same kind of changes in order to restore
compatibility with some more restrictive Fortran compilers so their
users could still benefit from the LLVM's OpenMP Fortran library.
@llvmbot llvmbot added the openmp:libomp OpenMP host runtime label Jan 11, 2024
@banach-space banach-space requested review from kiranchandramohan and removed request for banach-space January 11, 2024 16:11
Copy link
Member

@DavidTruby DavidTruby left a comment

Choose a reason for hiding this comment

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

LGTM
My only concern is we don’t have a way of testing if this breaks in future but that’s not a reason to hold up this patch

@DavidTruby
Copy link
Member

LGTM My only concern is we don’t have a way of testing if this breaks in future but that’s not a reason to hold up this patch

I suppose the long term solution is that we have a flang-format one day that can force files to fixed form Fortran, and format everything with that!

@pawosm-arm pawosm-arm merged commit d5b2e41 into llvm:main Jan 18, 2024
ampandey-1995 pushed a commit to ampandey-1995/llvm-project that referenced this pull request Jan 19, 2024
… compilers (llvm#77780)

The most recent changes to `omp_lib.h.var` have re-introduced some
compatibility issues that had to be fixed due to the similar changes in
the past. Namely:

1. D120707 has removed the "use omp_lib_kinds" statement and replaced it
with import

2. D114537 added line continuation to the long lines

This patch introduces the same kind of changes in order to restore
compatibility with some more restrictive Fortran compilers so their
users could still benefit from the LLVM's OpenMP Fortran library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openmp:libomp OpenMP host runtime
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants