We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 998bdae commit 39e93eeCopy full SHA for 39e93ee
mlir/lib/Dialect/Tosa/Transforms/TosaValidation.cpp
@@ -542,9 +542,13 @@ bool TosaValidation::isValidElementType(Type type) {
542
543
void TosaValidation::runOnOperation() {
544
configLevelAndProfile();
545
+
546
+ TosaDialect *tosaDialect = getContext().getLoadedDialect<TosaDialect>();
547
+ if (!tosaDialect)
548
+ return;
549
550
getOperation().walk([&](Operation *op) {
- if (!op->getDialect() ||
- op->getDialect()->getNamespace() != TosaDialect::getDialectNamespace())
551
+ if (op->getDialect() != tosaDialect)
552
return;
553
554
for (Value operand : op->getOperands()) {
0 commit comments