[all-commits] [llvm/llvm-project] 291913: [Flang] Lower the repeat intrinsic
kiranchandramohan via All-commits
all-commits at lists.llvm.org
Thu Mar 17 06:38:38 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 291913db53722f216222bbb1b685965215ffaf36
https://github.com/llvm/llvm-project/commit/291913db53722f216222bbb1b685965215ffaf36
Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: 2022-03-17 (Thu, 17 Mar 2022)
Changed paths:
M flang/lib/Lower/IntrinsicCall.cpp
A flang/test/Lower/Intrinsics/repeat.f90
Log Message:
-----------
[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: Valentin Clement <clementval at gmail.com>
Co-authored-by: Jean Perier <jperier at nvidia.com>
More information about the All-commits
mailing list