[Mlir-commits] [mlir] [TOSA] Don't run validation pass on non TOSA operations (PR #120205)

Luke Hutton llvmlistbot at llvm.org
Mon Dec 23 04:02:59 PST 2024


================
@@ -543,6 +543,10 @@ bool TosaValidation::isValidElementType(Type type) {
 void TosaValidation::runOnOperation() {
   configLevelAndProfile();
   getOperation().walk([&](Operation *op) {
+    if (!op->getDialect() ||
+        op->getDialect()->getNamespace() != TosaDialect::getDialectNamespace())
----------------
lhutton1 wrote:

Thanks for the suggestion, I've uploaded #120960 to address this

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


More information about the Mlir-commits mailing list