This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] OpInterface inheritance duplicates bases
ClosedPublic

Authored by darthscsi on Aug 2 2023, 9:47 PM.

Details

Summary

OpInterface inheritance will duplicate base interfaces, causing compilation failure. Unique the set of base interfaces.

Diff Detail

Event Timeline

darthscsi created this revision.Aug 2 2023, 9:47 PM
Herald added a project: Restricted Project. · View Herald Transcript
darthscsi requested review of this revision.Aug 2 2023, 9:47 PM
darthscsi retitled this revision from [TableGen] OpInterface inheritance dumplicates bases OpInterface inheritance will duplicate base interfaces, causing compilation failure. Unique the set of base interfaces. to [TableGen] OpInterface inheritance dumplicates bases.Aug 2 2023, 9:48 PM
darthscsi edited the summary of this revision. (Show Details)
youngar added a subscriber: youngar.Aug 2 2023, 9:51 PM
darthscsi retitled this revision from [TableGen] OpInterface inheritance dumplicates bases to [TableGen] OpInterface inheritance duplicates bases.Aug 3 2023, 7:22 AM
jdd accepted this revision.Aug 3 2023, 10:43 AM
jdd added a subscriber: jdd.

This looks good to me, though I don't know much about the tblgen interface system.

This revision is now accepted and ready to land.Aug 3 2023, 10:43 AM
rriddle accepted this revision.Aug 3 2023, 10:46 AM

Looks good to me

mlir/lib/TableGen/Interfaces.cpp
88

I'd expect that to be the default.

darthscsi updated this revision to Diff 546970.Aug 3 2023, 12:14 PM

StringSet change

darthscsi marked an inline comment as done.Aug 3 2023, 12:20 PM
This revision was landed with ongoing or failed builds.Aug 3 2023, 1:11 PM
This revision was automatically updated to reflect the committed changes.