The operations are converted into LLVM::PowIOp.
Depends on D139805
Paths
| Differential D129812
[mlir][math] Added math::FPowI conversion to LLVM dialect. ClosedPublic Authored by vzakhari on Jul 14 2022, 3:30 PM.
Details
Diff Detail
Event Timelinevzakhari added a parent revision: D129811: [mlir][math] Added basic support for FPowI operation..Jul 14 2022, 3:31 PM Comment Actions Hi @wsmoses, can you please read through the TBD comments in this change and see if you have any comments? This is related to LLVM::PowIOp added in https://reviews.llvm.org/D116364. It is not quite aligned with the supported forms of llvm.powi.* LLVM intrinsic, so I wonder what the plan for this MLIR operation is. vzakhari retitled this revision from [WIP][mlir][math] Added math::FPowSI conversion to LLVM dialect. to [WIP][mlir][math] Added math::FPowI conversion to LLVM dialect..
vzakhari retitled this revision from [WIP][mlir][math] Added math::FPowI conversion to LLVM dialect. to [mlir][math] Added math::FPowI conversion to LLVM dialect.. vzakhari added a parent revision: D139805: [mlir][math] Added arith::FastMathAttr support for math::FPowI.. Comment ActionsThis is a one-to-one conversion to LLVM::PowIOp. Flang will use MathToFuncs convertor (D139804) to convert unsupported exponent-width cases before engaging MathToLLVM. vzakhari added a child revision: D139806: [flang] Lower exponentiation without using pgmath..Dec 11 2022, 7:47 PM This revision is now accepted and ready to land.Dec 13 2022, 9:37 AM Closed by commit rG70174b8035da: [mlir][math] Added math::FPowI conversion to LLVM dialect. (authored by vzakhari). · Explain WhyDec 14 2022, 10:15 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 444817 mlir/include/mlir/Dialect/LLVMIR/LLVMIntrinsicOps.td
mlir/lib/Conversion/MathToLLVM/MathToLLVM.cpp
mlir/test/Conversion/MathToLLVM/math-to-llvm.mlir
|
Can you try VectorConvertToLLVMPattern<FPowIOp, PowIOp>?