[Mlir-commits] [mlir] 03aae4f - [MLIR][TOSA] Update CustomOp input and output names (#118408)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Dec 4 01:49:13 PST 2024


Author: Jerry-Ge
Date: 2024-12-04T09:49:09Z
New Revision: 03aae4fbaea4d3bf9364bc04bcbb5898816ab5ae

URL: https://github.com/llvm/llvm-project/commit/03aae4fbaea4d3bf9364bc04bcbb5898816ab5ae
DIFF: https://github.com/llvm/llvm-project/commit/03aae4fbaea4d3bf9364bc04bcbb5898816ab5ae.diff

LOG: [MLIR][TOSA] Update CustomOp input and output names (#118408)

Update input name from input to input_list
Update output name from outputs to output_list

To match specification:
https://www.mlplatform.org/tosa/tosa_spec.html#_custom

Signed-off-by: Jerry Ge <jerry.ge at arm.com>

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
index b1d3a32598c880..93a7aba05d9d8e 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
@@ -2013,9 +2013,9 @@ def Tosa_CustomOp : Tosa_Op<"custom"> {
     `implementation_attrs` is a string which is a backend and identifier specific
     set of attributes to the custom operator.
 
-    `inputs` is the set of tensor inputs to the custom operator.
+    `input_list` is the set of tensor inputs to the custom operator.
 
-    `outputs is the list of tensors returned by the operator. The number of operators
+    `output_list` is the list of tensors returned by the operator. The number of operators
     is backend specific.
 
     Example:
@@ -2031,11 +2031,11 @@ def Tosa_CustomOp : Tosa_Op<"custom"> {
     StrAttr:$operator_name,
     StrAttr:$domain_name,
     StrAttr:$implementation_attrs,
-    Variadic<Tosa_Tensor>:$inputs
+    Variadic<Tosa_Tensor>:$input_list
   );
 
   let results = (outs
-    Variadic<Tosa_Tensor>:$outputs
+    Variadic<Tosa_Tensor>:$output_list
   );
 
   let assemblyFormat = "operands attr-dict `:` functional-type(operands, results)";


        


More information about the Mlir-commits mailing list