[Mlir-commits] [mlir] [mlir][tosa] Update ConstOp to use Tosa_Tensor (PR #129959)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Mar 5 15:54:42 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Jerry-Ge (Jerry-Ge)
<details>
<summary>Changes</summary>
Since we already defined Tosa_Tensor in TosaTypesBase.td, updated ConstOp to use that.
---
Full diff: https://github.com/llvm/llvm-project/pull/129959.diff
1 Files Affected:
- (modified) mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td (+1-1)
``````````diff
diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
index ff83e4072b6c0..61178a0110aa3 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
@@ -2359,7 +2359,7 @@ def Tosa_ConstOp : Tosa_Op<"const", [ConstantLike, Pure,
);
let results = (outs
- TosaTensorOf<[AnyTypeOf<[Tosa_AnyNumber]>]>:$output
+ Tosa_Tensor:$output
);
list<Availability> availability = [
``````````
</details>
https://github.com/llvm/llvm-project/pull/129959
More information about the Mlir-commits
mailing list