This is an archive of the discontinued LLVM Phabricator instance.

TableGen: Generalize type deduction for !listconcat
ClosedPublic

Authored by nhaehnle on Feb 21 2018, 2:41 AM.

Details

Summary

This way, it should work even with complex operands.

Change-Id: Iaccf5bbb50bd5882a0ba5d59689e4381315fb361

Diff Detail

Repository
rL LLVM

Event Timeline

nhaehnle created this revision.Feb 21 2018, 2:41 AM
tra accepted this revision.Feb 21 2018, 11:02 AM

While we're on the subject of !listconcat, is there a way to make !listconcat([1,2,3], []) work?

This revision is now accepted and ready to land.Feb 21 2018, 11:02 AM

Thanks. Some of my later patches should at least make !listconcat([1,2,3], []) easier to get to, but I can't test right now whether it's already working. The idea is to pass the correct ItemType to ParseValue when parsing the operands.

This revision was automatically updated to reflect the committed changes.