[flang-commits] [flang] [WIP] [flang] Always lower ALLOCATE/DEALLOCATE to runtime calls. (PR #133238)
Michael Klemm via flang-commits
flang-commits at lists.llvm.org
Mon Apr 7 07:37:50 PDT 2025
mjklemm wrote:
> Depending on your use case, you can register new allocator and you can override the default allocator of you want.
Ah, right. Thanks for pointing me to that!
However, I do not see how such an allocator would be invoked, when Flang emits direct calls to `malloc` and `free` when compiling `ALLOCATE` and `DEALLOCATE`. I only have seen invocations to the actual Fortran runtime allocation routines, when something like `stat` was present for the `ALLOCATE`/`DEALLOCATE` statement.
https://github.com/llvm/llvm-project/pull/133238
More information about the flang-commits
mailing list