[Flang] Lower Matmul intrinsic
authorKiran Chandramohan <kiran.chandramohan@arm.com>
Thu, 17 Mar 2022 12:30:05 +0000 (12:30 +0000)
committerKiran Chandramohan <kiran.chandramohan@arm.com>
Thu, 17 Mar 2022 12:31:03 +0000 (12:31 +0000)
commit5be0f0c83d39310d1c6c078ec5b0731c48d34080
tree786cb8392bb36e947cd05659c57553e89d30ee07
parentab982eace6e4951a2986567d29f4d6be002c1ba7
[Flang] Lower Matmul intrinsic

The Matmul intrinsic performs matrix multiplication on rank 2 arrays.
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/D121904

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