[flang] Lower power operations
authorValentin Clement <clementval@gmail.com>
Mon, 28 Feb 2022 13:48:40 +0000 (14:48 +0100)
committerValentin Clement <clementval@gmail.com>
Mon, 28 Feb 2022 13:49:14 +0000 (14:49 +0100)
commit43c071fa4cb7df8d9f843fec246be653b7ad8e0a
tree784ef625fcceda5fde287e7a9d8efc92d5a3f1bd
parent32e8b550e5439c7e4aafa73894faffd5f25d0d05
[flang] Lower power operations

Lower the power operation for real, integer
and complex.

The power operation is lowered to library calls.

This patch is part of the upstreaming effort from fir-dev branch.

Depends on D120403

Reviewed By: schweitz

Differential Revision: https://reviews.llvm.org/D120556
flang/include/flang/Lower/IntrinsicCall.h
flang/lib/Lower/ConvertExpr.cpp
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/llvm-math.f90 [new file with mode: 0644]
flang/test/Lower/power-operator.f90 [new file with mode: 0644]