This is an archive of the discontinued LLVM Phabricator instance.

TableGen: Only fold when some operand made resolve progress
ClosedPublic

Authored by nhaehnle on Mar 7 2018, 3:16 AM.

Details

Summary

Make sure that we always fold immediately, so there's no point in
attempting to re-fold when nothing changes.

Change-Id: I069e1989455b6f2ca8606152f6adc1a5e817f1c8

Diff Detail

Repository
rL LLVM

Event Timeline

nhaehnle created this revision.Mar 7 2018, 3:16 AM
tra added inline comments.Mar 9 2018, 10:33 AM
lib/TableGen/TGParser.cpp
1967 ↗(On Diff #137350)

The error message could be more specific about the failure.
Perhaps it should do something along the lines of "can't cast " + LHS->getAsString()+ "to string".

2000 ↗(On Diff #137350)

Same here.

nhaehnle updated this revision to Diff 138356.Mar 14 2018, 7:51 AM
nhaehnle marked 2 inline comments as done.

Better error messages.

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