[mlir][Pass] Check supported op types before running a pass
authorMatthias Springer <me@m-sp.org>
Tue, 20 Jun 2023 12:39:40 +0000 (14:39 +0200)
committerMatthias Springer <me@m-sp.org>
Tue, 20 Jun 2023 12:40:11 +0000 (14:40 +0200)
commit87da4b6fa6ead0a0bb823536625c596c75516f2c
treef96f91c56b6cf3900581698b890eaaa2da3993bd
parent149f309f50cd981ed320c948f772aa571eaa9afa
[mlir][Pass] Check supported op types before running a pass

Add extra error checking to prevent passes from being run on unsupported ops through the pass manager infrastructure.

Differential Revision: https://reviews.llvm.org/D153144
mlir/lib/Pass/Pass.cpp
mlir/test/Dialect/Transform/test-pass-application.mlir
mlir/test/Pass/pipeline-invalid.mlir