This is an archive of the discontinued LLVM Phabricator instance.

[mlir] check interfaces are attached to the expected object
ClosedPublic

Authored by ftynse on Jun 15 2022, 5:49 AM.

Details

Summary

Add static assertions into the various attachInterface methods, which are
used for adding external interface implementations to attributes, operations
and types, that ensure ExternalModel interface classes are instantiated for
the same concrete operation for the concrete base (potentially self) attribute
or type as they are attached to. FallbackModels remain usable for generic
interface models that should support more than one kind of entities.

Diff Detail

Event Timeline

ftynse created this revision.Jun 15 2022, 5:49 AM
Herald added a project: Restricted Project. · View Herald Transcript
ftynse requested review of this revision.Jun 15 2022, 5:49 AM
springerm accepted this revision.Jun 15 2022, 6:06 AM

Thx for implementing this. This will make debugging much easier from now.

This revision is now accepted and ready to land.Jun 15 2022, 6:06 AM
This revision was landed with ongoing or failed builds.Jun 15 2022, 6:08 AM
This revision was automatically updated to reflect the committed changes.