-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
[Flang][NFC] Move runtime library files to flang-rt. #110298
Open
Meinersbur
wants to merge
75
commits into
main
Choose a base branch
from
users/meinersbur/flang_runtime_move-files
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+990
−853
Open
Changes from 68 commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
70ef83a
[Flang] Split common headers
Meinersbur 6071ac6
clang-format
Meinersbur 98c71d8
Normlize header guards
Meinersbur 2216bfe
Move files to FortranRuntime
Meinersbur d49157d
Move Module sources back to Flang
Meinersbur 8b984fe
Move runtime tests
Meinersbur 33ada12
Undo workaround not required anymore
Meinersbur 42e5abb
Split headers in preparation for cross-compilation. NFC.
Meinersbur 8757eb9
Move SubscriptValue to public header
Meinersbur b1dafd4
Keep common files in flang/
Meinersbur 85640e4
Merge branch 'users/meinersbur/flang_runtime_split-headers2' into use…
Meinersbur 3beb59b
build fix
Meinersbur b3f9e91
Re-add ISO-Fortran-binding unittest & cleanup
Meinersbur 765c2f9
FortranRuntime -> flang-rt
Meinersbur 2c31071
Restore API explanation comment
Meinersbur 5ce28b5
Remove vectorClassSize parameter
Meinersbur e3072f9
Address review comments
Meinersbur 68ed628
FLANGRT -> FLANG_RT
Meinersbur 7a08438
Merge commit 'fa627d98e87504b6f6d621a7dab5d140340ed760^' into users/m…
Meinersbur 9118d19
Merge branch 'users/meinersbur/flang_runtime_split-headers' into user…
Meinersbur 02812d5
Merge branch 'users/meinersbur/flang_runtime_split-headers2' into use…
Meinersbur 7cbde0c
Post-merge fixes
Meinersbur e4f9d08
Post-merge fixes
Meinersbur 5ee3547
Merge branch 'users/meinersbur/flang_runtime_split-headers2' into use…
Meinersbur a62b33e
Merge commit 'fa627d98e87504b6f6d621a7dab5d140340ed760' into users/me…
Meinersbur 752fdc3
Merge branch 'users/meinersbur/flang_runtime_split-headers' into user…
Meinersbur 93c608f
Merge branch 'users/meinersbur/flang_runtime_split-headers2' into use…
Meinersbur 49b22d8
Merge commit '06eb10dadfaeaadc5d0d95d38bea4bfb5253e077^' into users/m…
Meinersbur 08db098
Merge branch 'users/meinersbur/flang_runtime_split-headers' into user…
Meinersbur dec720f
Merge branch 'users/meinersbur/flang_runtime_split-headers' into user…
Meinersbur e355aaf
LangOptions -> Support (not used by flang-rt)
Meinersbur aac2ab0
Update guards
Meinersbur 4dc1b14
Merge commit '06eb10dadfaeaadc5d0d95d38bea4bfb5253e077' into users/me…
Meinersbur d918cd0
Merge branch 'users/meinersbur/flang_runtime_split-headers' into user…
Meinersbur f15847f
Merge branch 'users/meinersbur/flang_runtime_split-headers2' into use…
Meinersbur 61c21b5
Post-merge fixes
Meinersbur 2a97e4a
Merge branch 'main' into users/meinersbur/flang_runtime_split-headers
Meinersbur bf24912
Merge branch 'users/meinersbur/flang_runtime_split-headers' into user…
Meinersbur 7caea4d
Merge branch 'users/meinersbur/flang_runtime_split-headers2' into use…
Meinersbur 23da083
Post-merge fixes
Meinersbur 4bf520d
Merge remote-tracking branch 'official/main' into users/meinersbur/fl…
Meinersbur df0e077
Merge branch 'users/meinersbur/flang_runtime_split-headers2' into use…
Meinersbur c9b1c29
io-api.h -> io-api-consts.h
Meinersbur bd392d2
io-api-funcs.h -> io-api.h
Meinersbur c4faf05
iostat.h -> iostat-consts.h
Meinersbur 64bade3
iostat-funcs.h -> iostat.h
Meinersbur eda72ac
formatting
Meinersbur c704cf9
Merge commit 'c9b1c294dc55296da9fcea929b2ddadfe0091c53' into users/me…
Meinersbur a0e5ca9
Merge commit 'bd392d22ef084d32c5b82af1010d3a4591bda0f0' into users/me…
Meinersbur fe3a105
Post-merge fixes
Meinersbur 45f1713
Merge commit 'c4faf0574a3cb4ec3ade2fa9b7e78125217b23d1' into users/me…
Meinersbur 2fdf4e7
Merge commit '64bade38fd6a3e5c8c081bae92ce02f58cab799f' into users/me…
Meinersbur b71784c
Post-merge fixes
Meinersbur c11bca3
Merge branch 'users/meinersbur/flang_runtime_split-headers2' into use…
Meinersbur ea7fb0b
header update
Meinersbur 9b486ea
Cleanup
Meinersbur a490313
Merge branch 'main' into users/meinersbur/flang_runtime_split-headers2
Meinersbur 0c5ec72
Merge branch 'users/meinersbur/flang_runtime_split-headers2' into use…
Meinersbur d8ab489
Merge branch 'main' (early part) into users/meinersbur/flang_runtime_…
Meinersbur 956a58c
Merge branch 'main' into users/meinersbur/flang_runtime_move-files
Meinersbur b19c39c
Merge commit 'd6ec7c82f383ae4268f350f4d2e267af45fae8c0' into users/me…
Meinersbur fc659c8
Post-merge fix
Meinersbur e13784f
Merge branch 'main' into users/meinersbur/flang_runtime_move-files
Meinersbur 2f96a3c
Merge commit 'e8baa792e7db0b03a842448b5e85623da48a4367^' into users/m…
Meinersbur 8d820e6
Merge commit 'e8baa792e7db0b03a842448b5e85623da48a4367' into users/me…
Meinersbur 1eadf42
Merge branch 'main' into users/meinersbur/flang_runtime_move-files
Meinersbur ee0d85c
Merge branch 'main' into users/meinersbur/flang_runtime_move-files
Meinersbur e99f71a
Merge branch 'main' into users/meinersbur/flang_runtime_move-files
Meinersbur ca1d9d6
Merge branch 'main' into users/meinersbur/flang_runtime_move-files
Meinersbur d65a4bc
Merge branch 'main' into users/meinersbur/flang_runtime_move-files
Meinersbur de863e9
Merge branch 'main' into users/meinersbur/flang_runtime_move-files
Meinersbur 909dca1
CufRuntime -> flang_rt/CUDA
Meinersbur ad03beb
Merge branch 'main' into users/meinersbur/flang_runtime_move-files
Meinersbur c8532cc
restore memmove-function.cpp
Meinersbur ae7cc78
Merge branch 'main' into users/meinersbur/flang_runtime_move-files
Meinersbur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
# See: https://clang.llvm.org/docs/ClangFormatStyleOptions.html | ||
BasedOnStyle: LLVM | ||
AlignAfterOpenBracket: DontAlign | ||
AlignEscapedNewlines: DontAlign | ||
AlignConsecutiveAssignments: false | ||
AlignConsecutiveDeclarations: false | ||
AlignOperands: false | ||
AlignTrailingComments: false | ||
IncludeCategories: | ||
- Regex: '^<' | ||
Priority: 4 | ||
- Regex: '^"(llvm|llvm-c|clang|clang-c)/' | ||
Priority: 3 | ||
- Regex: '^"(flang|\.\.)/' | ||
Priority: 2 | ||
- Regex: '.*' | ||
Priority: 1 | ||
... | ||
|
||
# vim:set filetype=yaml: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/*===-- cmake/config.cmake.in ---------------------------------------*- C -*-=== | ||
* | ||
* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||
* See https://llvm.org/LICENSE.txt for license information. | ||
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
* | ||
*===----------------------------------------------------------------------===*/ | ||
|
||
#ifndef FORTRAN_RUNTIME_CONFIG_H | ||
#define FORTRAN_RUNTIME_CONFIG_H | ||
|
||
/* Define to 1 if you have the `strerror_r' function. */ | ||
#cmakedefine01 HAVE_STRERROR_R | ||
|
||
/* Define to 1 if you have the declaration of `strerror_s', and to 0 if you | ||
don't. */ | ||
#cmakedefine01 HAVE_DECL_STRERROR_S | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
flang/runtime/CUDA/CMakeLists.txt → flang-rt/lib/CufRuntime/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 9 additions & 9 deletions
18
flang/runtime/CUDA/allocator.cpp → flang-rt/lib/CufRuntime/allocator.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
flang/runtime/Float128Math/CMakeLists.txt → ...rt/lib/FortranFloat128Math/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
flang/runtime/Float128Math/acos.cpp → flang-rt/lib/FortranFloat128Math/acos.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
flang/runtime/Float128Math/acosh.cpp → flang-rt/lib/FortranFloat128Math/acosh.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
flang/runtime/Float128Math/asin.cpp → flang-rt/lib/FortranFloat128Math/asin.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
flang/runtime/Float128Math/asinh.cpp → flang-rt/lib/FortranFloat128Math/asinh.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
flang/runtime/Float128Math/atan.cpp → flang-rt/lib/FortranFloat128Math/atan.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
flang/runtime/Float128Math/atan2.cpp → flang-rt/lib/FortranFloat128Math/atan2.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
flang/runtime/Float128Math/atanh.cpp → flang-rt/lib/FortranFloat128Math/atanh.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
flang/runtime/Float128Math/ceil.cpp → flang-rt/lib/FortranFloat128Math/ceil.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep
CUDA
as it is done for the include dir.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still see the wrong directory name here. include is
include/flang-rt/CUDA
so like should belib/CUDA