[Mlir-commits] [mlir] [MLIR][Linalg] Left over Linalg named ops from previous PR (PR #90405)

Renato Golin llvmlistbot at llvm.org
Sun Apr 28 12:08:34 PDT 2024


rengolin wrote:

> Random question: is there a lowering path for `erf` to LLVM? Down to an intrinsic I would guess?

Linalg's `erf` lowers to a generic with `math.erf` which lowers to libm call with `ScalarOpToLibmCall` like other math calls.

https://github.com/llvm/llvm-project/blob/352602010fac5c7e07bc6b992848ab746d0c2857/mlir/lib/Conversion/MathToLibm/MathToLibm.cpp#L177

Ref: https://en.cppreference.com/w/cpp/numeric/math/erf

https://github.com/llvm/llvm-project/pull/90405


More information about the Mlir-commits mailing list