Skip to content

Commit 62d75f6

Browse files
committed
Revert "[mlir][tosa] Add a pass to narrow i64 to i32 (llvm#165581)"
This reverts commit c61c5d2.
1 parent c771159 commit 62d75f6

File tree

5 files changed

+0
-577
lines changed

5 files changed

+0
-577
lines changed

mlir/include/mlir/Dialect/Tosa/Transforms/Passes.td

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -166,27 +166,4 @@ def TosaAttachTarget : Pass<"tosa-attach-target", "ModuleOp"> {
166166
];
167167
}
168168

169-
def TosaNarrowI64ToI32Pass : Pass<"tosa-narrow-i64-to-i32", "func::FuncOp"> {
170-
let summary = "Narrow I64 TOSA operations to I32";
171-
let description = [{
172-
This pass narrows TOSA operations with 64-bit integer tensor types to
173-
32-bit integer tensor types. This can be useful for backends that do not
174-
support the EXT-INT64 extension of TOSA.
175-
}];
176-
177-
let options = [
178-
Option<"aggressiveRewrite", "aggressive-rewrite", "bool", "false",
179-
"If enabled, all TOSA operations are rewritten, regardless or whether the narrowing"
180-
"is safe. This option may lead to data loss if not used carefully.">,
181-
Option<"convertFunctionBoundaries", "convert-function-boundaries", "bool", "false",
182-
"If enabled, the pass will convert function I/O types as well. Otherwise casts will"
183-
"be inserted at the I/O boundaries.">
184-
];
185-
186-
let dependentDialects = [
187-
"func::FuncDialect",
188-
"tosa::TosaDialect",
189-
];
190-
}
191-
192169
#endif // MLIR_DIALECT_TOSA_TRANSFORMS_PASSES

mlir/lib/Dialect/Tosa/Transforms/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ add_mlir_dialect_library(MLIRTosaTransforms
1212
TosaTypeConverters.cpp
1313
TosaProfileCompliance.cpp
1414
TosaValidation.cpp
15-
TosaNarrowI64ToI32.cpp
1615

1716
ADDITIONAL_HEADER_DIRS
1817
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Tosa/Transforms

mlir/lib/Dialect/Tosa/Transforms/TosaNarrowI64ToI32.cpp

Lines changed: 0 additions & 310 deletions
This file was deleted.

0 commit comments

Comments
 (0)