[Mlir-commits] [mlir] [mlir][Tosa]: Add folder to ReciprocalOp of splat constant inputs (PR #78137)

Kai Sasaki llvmlistbot at llvm.org
Mon Jan 15 20:35:45 PST 2024


================
@@ -1778,6 +1779,15 @@ std::optional<SmallVector<int64_t, 4>> ApplyScaleOp::getShapeForUnroll() {
   return std::nullopt;
 }
 
+APFloat tosa::ReciprocalOp::computeFloatElemOne(const APFloat &floatVal,
----------------
Lewuathe wrote:

I think the name should be `computeReciprocal` or `computeReciprocalElem` as it would be clearer what it does.

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


More information about the Mlir-commits mailing list