HomePhabricator

[mlir] Tune error message for assertion.

Authored by silvas on Mar 16 2021, 1:40 PM.

Description

[mlir] Tune error message for assertion.

This assertion can fire in the case of different contexts as well, which
is not difficult to do from Python bindings, for example.

Details

Committed
silvasMon, Mar 22, 6:10 PM
Parents
rGe3a6d70c6834: Revert "[Passes] Add relative lookup table converter pass"
Branches
Unknown
Tags
Unknown

Event Timeline

We shouldn't rely on assertion for the python bindings I think, is this something we could have better checks for in the bindings themselves?

I haven't audited it yet, but I suspect we can do better. In this case, the binding for PassManager::run would need to check that the context for the op is the same as its context.