Skip to content
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] Fold IS_IOSTAT_END() & IS_IOSTAT_EOR() #70971

Merged
merged 1 commit into from
Nov 13, 2023
Merged

Conversation

klausler
Copy link
Contributor

@klausler klausler commented Nov 1, 2023

These intrinsic functions are not particularly valuable -- one can just compare a value to IOSTAT_END or IOSTAT_EOR directly -- but they are in the standard and are allowed to appear in constant expressions, so here's code to fold them.

These intrinsic functions are not particularly valuable -- one can just
compare a value to IOSTAT_END or IOSTAT_EOR directly -- but they are
in the standard and are allowed to appear in constant expressions,
so here's code to fold them.
Copy link
Contributor

@psteinfeld psteinfeld left a comment

Choose a reason for hiding this comment

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

Looks great!

@klausler klausler merged commit 67f15e7 into llvm:main Nov 13, 2023
3 checks passed
@klausler klausler deleted the v5 branch November 13, 2023 22:07
zahiraam pushed a commit to zahiraam/llvm-project that referenced this pull request Nov 20, 2023
These intrinsic functions are not particularly valuable -- one can just
compare a value to IOSTAT_END or IOSTAT_EOR directly -- but they are in
the standard and are allowed to appear in constant expressions, so
here's code to fold them.
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.

None yet

2 participants