Skip to content
Commit 291913db authored by Kiran Chandramohan's avatar Kiran Chandramohan
Browse files

[Flang] Lower the repeat intrinsic

The repeat intrinsic creates ncopies of a string. The lowering is to
a runtime call to a function in the flang library. The runtime allocates
the buffer to store the result string. This buffer is freed by code
added in the lowering.

This is part of the upstreaming effort from the fir-dev branch in [1].
[1] https://github.com/flang-compiler/f18-llvm-project

Reviewed By: clementval

Differential Revision: https://reviews.llvm.org/D121880



Co-authored-by: default avatarValentin Clement <clementval@gmail.com>
Co-authored-by: default avatarJean Perier <jperier@nvidia.com>
parent 2b55850d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment