[Mlir-commits] [mlir] [mlir][tosa] Add several level checks (PR #128074)

TatWai Chong llvmlistbot at llvm.org
Tue Feb 25 23:17:04 PST 2025


================
@@ -695,6 +773,9 @@ LogicalResult TosaValidation::applyErrorIfCheck(Operation *op) {
 }
 
 bool TosaValidation::isValidElementType(Type type) {
+  if (auto quantType = llvm::dyn_cast<mlir::quant::QuantizedType>(type))
----------------
tatwaichong wrote:

Yes, you are right. Quantized types will be stripped by the pass preceding this validation. Can be removed.

https://github.com/llvm/llvm-project/pull/128074


More information about the Mlir-commits mailing list