[mlir][tosa] Replace StructAttrs with AttrDefsDepends on D127352Reviewed By: rriddleDifferential Revision: https://reviews.llvm.org/D127370
[mlir][tosa] Limit right-shift to 31 bitsRight shift can occur that is a 32-bit right shift. This is undefined behavior.Reviewed By: mehdi_aminiDifferential Revision: https://reviews.llvm.org/D
[mlir][tosa] Limit right-shift to 31 bitsRight shift can occur that is a 32-bit right shift. This is undefined behavior.Reviewed By: mehdi_aminiDifferential Revision: https://reviews.llvm.org/D117732
show more ...
[tosa][mlir] Support dynamic batch dimension for ops where the batch dim is explicitDynamic batch for rescale, gather, max_pool, avg_pool, conv2D and depthwise_conv2D. Split helper functions into a
[tosa][mlir] Support dynamic batch dimension for ops where the batch dim is explicitDynamic batch for rescale, gather, max_pool, avg_pool, conv2D and depthwise_conv2D. Split helper functions into a separate header file.Reviewed By: rsudermanDifferential Revision: https://reviews.llvm.org/D117031
[mlir][tosa] Handle rescale case where shift > 63It is possible for the shift value to exceed the number of bits. In thesecases we can just multiply by zero. This is relatively rare occurence but
[mlir][tosa] Handle rescale case where shift > 63It is possible for the shift value to exceed the number of bits. In thesecases we can just multiply by zero. This is relatively rare occurence butshould be handled.Reviewed By: not-jenniDifferential Revision: https://reviews.llvm.org/D115779
[mlir][tosa] Relax ranked constraint on quantization builderTosaOp defintion had an artificial constraint that the input/output typesneeded to be ranked to invoke the quantization builder. This is
[mlir][tosa] Relax ranked constraint on quantization builderTosaOp defintion had an artificial constraint that the input/output typesneeded to be ranked to invoke the quantization builder. This is correct as anunranked tensor could still be quantized.Reviewed By: NatashaKnkDifferential Revision: https://reviews.llvm.org/D109863
NFC: (re-apply) Fix some post-review nits for the Tosa dialect.This reverts commit 330398052d049f90e6cfac80ab8b765b158a3e61.Differential Revision: https://reviews.llvm.org/D91006
Revert "NFC: Fix some post-review nits for the Tosa dialect."* Introduced issue in debug builds.This reverts commit b5fcd06105dec2a7b0e4114d6ad4524fc54498c5.
NFC: Fix some post-review nits for the Tosa dialect.* Moved various loose functions to either the mlir::tosa namespace or made static* Fixed an unused variable warning in TosaMakeBroadcastable.cpp.
TOSA MLIR DialectThis is the TOSA MLIR Dialect described in the following MLIR RFC: https://llvm.discourse.group/t/rfc-tosa-dialect-in-mlir/1971/24Reviewed By: stellaraccidentDifferential Revis
TOSA MLIR DialectThis is the TOSA MLIR Dialect described in the following MLIR RFC: https://llvm.discourse.group/t/rfc-tosa-dialect-in-mlir/1971/24Reviewed By: stellaraccidentDifferential Revision: https://reviews.llvm.org/D90411