Skip to content

[mlir][tosa] Update ConstOp to use Tosa_Tensor #129959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

Jerry-Ge
Copy link
Member

@Jerry-Ge Jerry-Ge commented Mar 5, 2025

Since we already defined Tosa_Tensor in TosaTypesBase.td, updated ConstOp to use that.

Since we already defined Tosa_Tensor in TosaTypesBase.td, updated
ConstOp to use that.

Signed-off-by: Jerry Ge <[email protected]>
Change-Id: If452150c05c0d7368e8c429ae074c3f0f27f77f0
@llvmbot
Copy link
Member

llvmbot commented Mar 5, 2025

@llvm/pr-subscribers-mlir

Author: Jerry-Ge (Jerry-Ge)

Changes

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 --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 = [

@llvmbot
Copy link
Member

llvmbot commented Mar 5, 2025

@llvm/pr-subscribers-mlir-tosa

Author: Jerry-Ge (Jerry-Ge)

Changes

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 --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 = [

@GeorgeARM GeorgeARM merged commit 4554b30 into llvm:main Mar 6, 2025
14 checks passed
@Jerry-Ge Jerry-Ge deleted the tosa_tensor branch March 20, 2025 21:40
jph-13 pushed a commit to jph-13/llvm-project that referenced this pull request Mar 21, 2025
Since we already defined Tosa_Tensor in TosaTypesBase.td, updated
ConstOp to use that.

Signed-off-by: Jerry Ge <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants