[all-commits] [llvm/llvm-project] 50b937: [mlir] Add missing libm member operations to MathT...
Corentin Ferry via All-commits
all-commits at lists.llvm.org
Mon Apr 8 15:41:33 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 50b937331ff44ac4b4ee70c3bfc0c4da51a02855
https://github.com/llvm/llvm-project/commit/50b937331ff44ac4b4ee70c3bfc0c4da51a02855
Author: Corentin Ferry <corentin.ferry at amd.com>
Date: 2024-04-09 (Tue, 09 Apr 2024)
Changed paths:
M mlir/lib/Conversion/MathToLibm/MathToLibm.cpp
M mlir/test/Conversion/MathToLibm/convert-to-libm.mlir
Log Message:
-----------
[mlir] Add missing libm member operations to MathToLibm (#87981)
This PR adds support for lowering the following Math operations to
`libm` calls:
* `math.absf` -> `fabsf, fabs`
* `math.exp` -> `expf, exp`
* `math.exp2` -> `exp2f, exp2`
* `math.fma` -> `fmaf, fma`
* `math.log` -> `logf, log`
* `math.log2` -> `log2f, log2`
* `math.log10` -> `log10f, log10`
* `math.powf` -> `powf, pow`
* `math.sqrt` -> `sqrtf, sqrt`
These operations are direct members of `libm`, and do not seem to
require any special manipulations on their operands.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list