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][OpenMP] Use builtins in remaining FlangRuntime routines #181

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

dpalermo
Copy link

No description provided.

@dpalermo
Copy link
Author

dpalermo commented Oct 11, 2024

This patch enables all remaining FortranRuntime library routines to use the same builtin change (vs. relying on libc) that was used for __FortranAAssign. Using Fortran::runtime:: instead of std:: for the supported routines allows the host built to continue to use std/libc and the device offload build to use the builtin equivalents so that libc is not required on device.

If interested in more of the details, see #176 for how the builtins were originally worked into the existing "STD_*_UNSUPPORTED" support that was already present in flang/Runtime/freestanding-tools.h Fortran::runtime namespace.

@dpalermo dpalermo merged commit 61c99c9 into amd-trunk-dev Oct 11, 2024
3 of 5 checks passed
@dpalermo dpalermo deleted the dp_flangrt_hostdev_builtins_2 branch October 11, 2024 02:50
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.

2 participants