This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix assert crash when an unregistered dialect op is encountered
ClosedPublic

Authored by bondhugula on Oct 12 2021, 3:24 AM.

Details

Summary

Fix assert crash when an unregistered dialect op is encountered during
parsing and `-allow-unregistered-dialect' isn't on. Instead, emit an
error.

While on this, clean up "registered" vs "loaded" on getDialect() and
local clang-tidy warnings.

https://llvm.discourse.group/t/assert-behavior-on-unregistered-dialect-ops/4402

Diff Detail

Event Timeline

bondhugula created this revision.Oct 12 2021, 3:24 AM
bondhugula requested review of this revision.Oct 12 2021, 3:24 AM

Update comment.

bondhugula retitled this revision from Fix assert crash when an unregistered dialect op is encountered to [MLIR] Fix assert crash when an unregistered dialect op is encountered.Oct 12 2021, 3:27 AM
lattner accepted this revision.Oct 12 2021, 8:43 AM

Awesome, thanks for fixing this!

This revision is now accepted and ready to land.Oct 12 2021, 8:43 AM
mehdi_amini accepted this revision.Oct 12 2021, 11:27 AM

Thanks Uday!