Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions mlir/include/mlir/Dialect/Tosa/Transforms/Passes.td
Original file line number Diff line number Diff line change
Expand Up @@ -166,27 +166,4 @@ def TosaAttachTarget : Pass<"tosa-attach-target", "ModuleOp"> {
];
}

def TosaNarrowI64ToI32Pass : Pass<"tosa-narrow-i64-to-i32", "func::FuncOp"> {
let summary = "Narrow I64 TOSA operations to I32";
let description = [{
This pass narrows TOSA operations with 64-bit integer tensor types to
32-bit integer tensor types. This can be useful for backends that do not
support the EXT-INT64 extension of TOSA.
}];

let options = [
Option<"aggressiveRewrite", "aggressive-rewrite", "bool", "false",
"If enabled, all TOSA operations are rewritten, regardless or whether the narrowing"
"is safe. This option may lead to data loss if not used carefully.">,
Option<"convertFunctionBoundaries", "convert-function-boundaries", "bool", "false",
"If enabled, the pass will convert function I/O types as well. Otherwise casts will"
"be inserted at the I/O boundaries.">
];

let dependentDialects = [
"func::FuncDialect",
"tosa::TosaDialect",
];
}

#endif // MLIR_DIALECT_TOSA_TRANSFORMS_PASSES
1 change: 0 additions & 1 deletion mlir/lib/Dialect/Tosa/Transforms/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ add_mlir_dialect_library(MLIRTosaTransforms
TosaTypeConverters.cpp
TosaProfileCompliance.cpp
TosaValidation.cpp
TosaNarrowI64ToI32.cpp

ADDITIONAL_HEADER_DIRS
${MLIR_MAIN_INCLUDE_DIR}/mlir/Dialect/Tosa/Transforms
Expand Down
310 changes: 0 additions & 310 deletions mlir/lib/Dialect/Tosa/Transforms/TosaNarrowI64ToI32.cpp

This file was deleted.

Loading
Loading