Skip to content

Commit d12a4d4

Browse files
Jerry-Gelhutton1
andauthored
[mlir][tosa] Remove section numbers in operator tablegen (#128048)
The section numbers don't currently match what is in the v1.0 spec(https://www.mlplatform.org/tosa/tosa_spec.html) It can be a burden to remember to update these, and they didn't seem to have much use, so proposing to remove these comments. Signed-off-by: Luke Hutton <[email protected]> Co-authored-by: Luke Hutton <[email protected]>
1 parent aa6d3ff commit d12a4d4

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ include "mlir/Dialect/Tosa/IR/TosaTypesBase.td"
2525
include "mlir/Dialect/Tosa/IR/TosaOpBase.td"
2626

2727
//===----------------------------------------------------------------------===//
28-
// TOSA Spec Section 2.2
2928
// Operator Class: Tensor Data Engine Operators.
3029
//===----------------------------------------------------------------------===//
3130

@@ -398,7 +397,6 @@ def Tosa_TransposeConv2DOp : Tosa_ConvOp<"transpose_conv2d"> {
398397
}
399398

400399
//===----------------------------------------------------------------------===//
401-
// TOSA Spec Section 2.3
402400
// Operator Class: Activation Functions.
403401
//===----------------------------------------------------------------------===//
404402

@@ -521,7 +519,6 @@ def Tosa_ErfOp : Tosa_ElementwiseUnaryOp<"erf"> {
521519
}
522520

523521
//===----------------------------------------------------------------------===//
524-
// TOSA Spec Section 2.4
525522
// Operator Class: Elementwise unary/binary/ternary operators.
526523
// Operator Subclass: Elementwise binary ops.
527524
//===----------------------------------------------------------------------===//
@@ -1045,7 +1042,6 @@ def Tosa_TableOp : Tosa_InferShapedTypeOp<"table"> {
10451042
}
10461043

10471044
//===----------------------------------------------------------------------===//
1048-
// TOSA Spec Section 2.5
10491045
// Operator Class: Elementwise unary/binary/ternary operators.
10501046
// Operator Subclass: Elementwise unary ops.
10511047
//===----------------------------------------------------------------------===//
@@ -1394,7 +1390,6 @@ def Tosa_SinOp : Tosa_ElementwiseUnaryOp<"sin"> {
13941390
}
13951391

13961392
//===----------------------------------------------------------------------===//
1397-
// TOSA Spec Section 2.6
13981393
// Operator Class: Elementwise unary/binary/ternary operators.
13991394
// Operator Subclass: Elementwise ternary ops.
14001395
//===----------------------------------------------------------------------===//
@@ -1434,7 +1429,6 @@ def Tosa_SelectOp : Tosa_ElementwiseOp<"select"> {
14341429
}
14351430

14361431
//===----------------------------------------------------------------------===//
1437-
// TOSA Spec Section 2.7
14381432
// Operator Class: Logical Operations.
14391433
//===----------------------------------------------------------------------===//
14401434

@@ -1530,7 +1524,6 @@ def Tosa_GreaterEqualOp : Tosa_ElementwiseOp<"greater_equal",
15301524
}
15311525

15321526
//===----------------------------------------------------------------------===//
1533-
// TOSA Spec Section 2.8
15341527
// Operator Class: Reduction Ops.
15351528
//===----------------------------------------------------------------------===//
15361529

@@ -1773,7 +1766,6 @@ def Tosa_ReduceSumOp : Tosa_InferTensorTypeOp<"reduce_sum"> {
17731766
}
17741767

17751768
//===----------------------------------------------------------------------===//
1776-
// TOSA Spec Section 2.9
17771769
// Operator Class: Data Layout / Memory Reinterpretation.
17781770
//===----------------------------------------------------------------------===//
17791771

@@ -2033,7 +2025,6 @@ def Tosa_TransposeOp : Tosa_InferShapedTypeOp<"transpose",
20332025
}
20342026

20352027
//===----------------------------------------------------------------------===//
2036-
// TOSA Spec Section 2.10
20372028
// Operator Class: Scatter/gather Operations.
20382029
//===----------------------------------------------------------------------===//
20392030

@@ -2091,7 +2082,6 @@ def Tosa_ScatterOp : Tosa_InferShapedTypeOp<"scatter"> {
20912082
}
20922083

20932084
//===----------------------------------------------------------------------===//
2094-
// TOSA Spec Section 2.11
20952085
// Operator Class: Image Frontend Functions.
20962086
//===----------------------------------------------------------------------===//
20972087

@@ -2132,7 +2122,6 @@ def Tosa_ResizeOp : Tosa_InferShapedTypeOp<"resize"> {
21322122
}
21332123

21342124
//===----------------------------------------------------------------------===//
2135-
// TOSA Spec Section 2.12
21362125
// Operator Class: Type Conversion.
21372126
//===----------------------------------------------------------------------===//
21382127

@@ -2243,7 +2232,6 @@ def Tosa_RescaleOp: Tosa_Op<"rescale", [Pure,
22432232
}
22442233

22452234
//===----------------------------------------------------------------------===//
2246-
// TOSA Spec Section 2.13
22472235
// Operator Class: Data Node Ops.
22482236
//===----------------------------------------------------------------------===//
22492237

@@ -2313,7 +2301,6 @@ def Tosa_IdentityOp: Tosa_Op<"identity", [Pure,
23132301
}
23142302

23152303
//===----------------------------------------------------------------------===//
2316-
// TOSA Spec Section 2.14
23172304
// Operator Class: Custom Operators.
23182305
//===----------------------------------------------------------------------===//
23192306

@@ -2373,7 +2360,6 @@ def Tosa_CustomOp : Tosa_Op<"custom"> {
23732360
}
23742361

23752362
//===----------------------------------------------------------------------===//
2376-
// TOSA Spec Section 2.15
23772363
// Operator Class: Control Flow Operators.
23782364
//===----------------------------------------------------------------------===//
23792365

0 commit comments

Comments
 (0)