diff options
| author | Kiran Chandramohan <kiran.chandramohan@arm.com> | 2022-02-25 17:30:44 +0000 |
|---|---|---|
| committer | Kiran Chandramohan <kiran.chandramohan@arm.com> | 2022-02-25 17:41:48 +0000 |
| commit | 7c0acc1a989ae2765e0b7e20d6bc005280351956 (patch) | |
| tree | 05b4332dca05355f820e73357a550c90fd78a40a /libcxx/include/__algorithm/comp.h | |
| parent | ccbbb4f6c716ba14d98cceff08a81777228ab4d1 (diff) | |
| download | llvm-7c0acc1a989ae2765e0b7e20d6bc005280351956.zip llvm-7c0acc1a989ae2765e0b7e20d6bc005280351956.tar.gz llvm-7c0acc1a989ae2765e0b7e20d6bc005280351956.tar.bz2 | |
Lower Fortran intrinsic to a runtime call/llvm intrinsic
This patch brings in code which can lower a Fortran intrinsic to
a runtime call or an llvm intrinsic. For math intrinsics the
runtime call is to the `math` or `pgmath` library. Non-math
intrinsics are covered by the Flang runtime. A distance computation
mechanism is introduced to find the runtime function that closely
matches the types of the intrinsic call.
In this patch, the `abs` intrinsic is lowered in the following way,
-> Integer version is lowered as a group of MLIR/FIR operations
-> Real version is lowered to llvm intrinsics
-> Complex version is lowered to the `math_hypot` runtime function
This patch is part of upstreaming from the fir-dev branch of https://github.com/flang-compiler/f18-llvm-project
Reviewed By: clementval
Differential Revision: https://reviews.llvm.org/D120403
Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: zacharyselk <zrselk@gmail.com>
Co-authored-by: V Donaldson <vdonaldson@nvidia.com>
Co-authored-by: Valentin Clement <clementval@gmail.com>
Diffstat (limited to 'libcxx/include/__algorithm/comp.h')
0 files changed, 0 insertions, 0 deletions
