-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[flang-rt] Runtime implementation of extended intrinsic function SECNDS() #152021
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
Changes from 17 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
68a1a81
[flang-rt] Runtime implementation of extended intrinsic function SECN…
eugeneepshteyn 716f82d
clang-format
eugeneepshteyn 8bbe4eb
Fixed a typo
eugeneepshteyn 5f671e7
Fixed init form
eugeneepshteyn 9c53878
The failure code should be negative
eugeneepshteyn 80b61ed
Introduce FAIL_TIME
eugeneepshteyn 26b1265
Merge branch 'llvm:main' into secnds-runtime
eugeneepshteyn 78a8d07
Code review: moved RTNAME(Secnds) to extensions.cpp. Added missing t…
eugeneepshteyn 2f3a274
Attempt at using atomic operations in secnds_() to make it reentrant
eugeneepshteyn 9940825
clang-format
eugeneepshteyn 7268c8c
Fixed init
eugeneepshteyn 812760f
Merge branch 'llvm:main' into secnds-runtime
eugeneepshteyn 205818e
Reset startingPoint to 'uninitialized' on failure
eugeneepshteyn 5945264
Changed currentStartingPoint initialization to use loop in all cases
eugeneepshteyn 5cdb74d
clang-format
eugeneepshteyn 599713e
Code review feedback
eugeneepshteyn 4ae3cd3
clang-format
eugeneepshteyn fdd310a
Moved RTNAME(Secnds) declaration to extensions.h
eugeneepshteyn 1cf3a46
Simplified the implementation based on Peter's suggestion
eugeneepshteyn aa3d3d4
clang-format
eugeneepshteyn 0603b56
Merge branch 'llvm:main' into secnds-runtime
eugeneepshteyn fb75bee
Extracted common implementation into SecndsImpl(), which can then be …
eugeneepshteyn 27ddc47
clang-format
eugeneepshteyn a61d035
Merge branch 'main' into secnds-runtime
eugeneepshteyn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
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.
This is ready for review. I did some testing with multiple threads. Test program:
Output: