[Flang] Lower the transpose intrinsic
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Thu, 17 Mar 2022 13:05:16 +0000 (13:05 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Thu, 17 Mar 2022 13:15:11 +0000 (13:15 +0000)
commite525245fba629632db4d026f2cac29f032f02320
treed74d704afd9410121f5e3b20bfb58e357c3cc262
parent67e91510963a5307814aaf8463222635bddf1644
[Flang] Lower the transpose intrinsic

Tranpose intrinsic performs the transpose matrix operation for arrays
of rank 2. The intrinsic is lowered to a runtime call.

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/D121895

Co-authored-by: Valentin Clement <clementval@gmail.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/transpose.f90 [new file with mode: 0644]