This is an archive of the discontinued LLVM Phabricator instance.

TableGen: Allow implicit casting between string and code
ClosedPublic

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

Details

Summary

Perhaps the distinction between the two should be removed entirely
in the long term, and the [{ ... }] syntax should just be a convenient
way of writing multi-line strings.

In the meantime, a lot of existing .td files are quite relaxed about
string vs. code, and this change allows switching on more consistent
type checks without breaking those.

Change-Id: If85e3e04469e41b58e2703b62ac0032d2711713c

Diff Detail

Repository
rL LLVM

Event Timeline

nhaehnle created this revision.Feb 21 2018, 2:42 AM
tra accepted this revision.Feb 21 2018, 5:11 PM
This revision is now accepted and ready to land.Feb 21 2018, 5:11 PM
This revision was automatically updated to reflect the committed changes.