[Mlir-commits] [mlir] [mlir][Tosa]: Add folder to ReciprocalOp of splat constant inputs (PR #78137)
Aviad Cohen
llvmlistbot at llvm.org
Tue Jan 16 00:14:39 PST 2024
================
@@ -1778,6 +1779,15 @@ std::optional<SmallVector<int64_t, 4>> ApplyScaleOp::getShapeForUnroll() {
return std::nullopt;
}
+APFloat tosa::ReciprocalOp::computeFloatElemOne(const APFloat &floatVal,
----------------
AviadCo wrote:
I matched the function to be same as other Tosa ops like `ReduceAllOp` to be `calcOneElement`, also added the class prefix to make it readable when calling it.
https://github.com/llvm/llvm-project/pull/78137
More information about the Mlir-commits
mailing list