This is an archive of the discontinued LLVM Phabricator instance.

TableGen: simplify BitsInit::resolveReferences
ClosedPublic

Authored by nhaehnle on Feb 22 2018, 4:07 PM.

Details

Summary

No functional change intended. The removed code has a loop for
recursive resolving, which is superseded by the recursive
resolving done by the Resolver implementations.

Add a test case which was broken by an earlier version of this
change.

Change-Id: Ib208d037b77a8bbb725977f1388601fc984723d8

Diff Detail

Repository
rL LLVM

Event Timeline

nhaehnle created this revision.Feb 22 2018, 4:07 PM
tra accepted this revision.Feb 23 2018, 3:33 PM

Few nits on the test. LGTM otherwise.

test/TableGen/UnsetBitInit.td
3 ↗(On Diff #135546)

More details would be helpful here. E.g.: Verify that Inst still contains references to P and Q, instead of '?' which is their current value.

8 ↗(On Diff #135546)

Adding checks for P and Q here would help to illustrate the behavior the test verifies.

This revision is now accepted and ready to land.Feb 23 2018, 3:33 PM
nhaehnle marked 2 inline comments as done.Feb 25 2018, 8:04 AM
nhaehnle added inline comments.
test/TableGen/UnsetBitInit.td
3 ↗(On Diff #135546)

Done locally.

8 ↗(On Diff #135546)

Done locally.

nhaehnle updated this revision to Diff 135830.Feb 25 2018, 8:24 AM
nhaehnle marked 2 inline comments as done.

Expand on the test.

nhaehnle updated this revision to Diff 135856.Feb 26 2018, 12:27 AM

Add the missing FileCheck to the test.

This revision was automatically updated to reflect the committed changes.