This is an archive of the discontinued LLVM Phabricator instance.

TableGen: Explicitly test some cases of self-references and !cast errors
ClosedPublic

Authored by nhaehnle on Mar 14 2018, 8:21 AM.

Details

Summary

These are cases of self-references that exist today in practice. Let's
add tests for them to avoid regressions.

The self-references in PPCInstrInfo.td can be expressed in a simpler
way. Allowing this type of self-reference while at the same time
consistently doing late-resolve even for self-references is problematic
because there are references to fields that aren't in any class. Since
there's no need for this type of self-reference anyway, let's just
remove it.

Change-Id: I914e0b3e1ae7adae33855fac409b536879bc3f62

Diff Detail

Repository
rL LLVM

Event Timeline

nhaehnle created this revision.Mar 14 2018, 8:21 AM
tra accepted this revision.Mar 14 2018, 11:28 AM
This revision is now accepted and ready to land.Mar 14 2018, 11:28 AM
This revision was automatically updated to reflect the committed changes.