Skip to content

[flang][rt] Use allocator registry to allocate the pointer payload #129992

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 1 commit into from
Mar 6, 2025

Conversation

clementval
Copy link
Contributor

pointer allocation is done through AllocateValidatedPointerPayload. This function was not updated to use the registered allocators in the descriptor to perform the allocation. This patch makes use of the allocator.
The footer word is not set and not checked for allocator other than the default one. The support will likely come in a follow up patch but this will necessitate more functions to be registered to be able to set and get the footer value when the allocation in on the device.

@clementval clementval requested a review from klausler March 6, 2025 05:57
@llvmbot llvmbot added the flang Flang issues not falling into any other category label Mar 6, 2025
@clementval clementval merged commit c8898b0 into llvm:main Mar 6, 2025
13 checks passed
@clementval clementval deleted the flang_rt_pointer branch March 6, 2025 16:47
jph-13 pushed a commit to jph-13/llvm-project that referenced this pull request Mar 21, 2025
…lvm#129992)

pointer allocation is done through `AllocateValidatedPointerPayload`.
This function was not updated to use the registered allocators in the
descriptor to perform the allocation. This patch makes use of the
allocator.
The footer word is not set and not checked for allocator other than the
default one. The support will likely come in a follow up patch but this
will necessitate more functions to be registered to be able to set and
get the footer value when the allocation in on the device.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants