Skip to content

[flang-rt] Added IsContiguousUpTo runtime function. #131048

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 3 commits into from
Mar 15, 2025

Conversation

vzakhari
Copy link
Contributor

I want to be able to check if the storage is contiguous
in the innermost dimension, so I decided to add an entry point
that takes dim as the number of leading dimensions to check.
It seems that a runtime call might result in less code size
even when dim is 1, so here it is.
For opt-for-speed I am going to inline it in FIR.

Depends on #131047.

I want to be able to check if the storage is contiguous
in the innermost dimension, so I decided to add an entry point
that takes `dim` as the number of leading dimensions to check.
It seems that a runtime call might result in less code size
even when `dim` is 1, so here it is.
For opt-for-speed I am going to inline it in FIR.

Depends on llvm#131047.
@vzakhari vzakhari requested review from jeanPerier and klausler March 13, 2025 01:07
@vzakhari vzakhari merged commit f326036 into llvm:main Mar 15, 2025
10 checks passed
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.

3 participants