This is an archive of the discontinued LLVM Phabricator instance.

[Flang] Lower the repeat intrinsic
ClosedPublic

Authored by kiranchandramohan on Mar 16 2022, 10:50 PM.

Details

Summary

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

Co-authored-by: Valentin Clement <clementval@gmail.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>

Diff Detail

Event Timeline

Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
Herald added a subscriber: mehdi_amini. · View Herald Transcript
kiranchandramohan requested review of this revision.Mar 16 2022, 10:50 PM
This revision is now accepted and ready to land.Mar 16 2022, 10:51 PM
This revision was automatically updated to reflect the committed changes.