[Mlir-commits] [mlir] [mlir][tosa] Remove 'Pure' trait from operations that are not speculatable (PR #185700)
Luke Hutton
llvmlistbot at llvm.org
Fri Mar 13 06:12:54 PDT 2026
================
@@ -1528,7 +1597,7 @@ def Tosa_NegateOp : Tosa_InferShapedTypeOp<"negate", [
//===----------------------------------------------------------------------===//
// Operator: reciprocal
//===----------------------------------------------------------------------===//
-def Tosa_ReciprocalOp : Tosa_ElementwiseUnaryOp<"reciprocal"> {
+def Tosa_ReciprocalOp : Tosa_ElementwiseUnaryOp<"reciprocal", [Pure]> {
let summary = "Elementwise reciprocal operator.";
let description = [{
----------------
lhutton1 wrote:
In the integer case, it's expected reciprocal is legalized to a tosa.table operator. The tosa.reciprocal operation only supports floating point types, at least according to the TOSA specification
https://github.com/llvm/llvm-project/pull/185700
More information about the Mlir-commits
mailing list