This is an archive of the discontinued LLVM Phabricator instance.

[tablegen] Fixed few !foreach evaluation issues.
ClosedPublic

Authored by tra on Feb 8 2018, 11:34 AM.

Details

Summary
  • !foreach on lists didn't evaluate operands of the RHS operator. This made nested operators silently fail.
  • A typo in the code could result in a wrong value substituted for an operation which produced a false '!foreach requires an operator' error.
  • Keep recursion over the DAG within ForeachHelper. This simplifies things a bit as we no longer need to pass the Type around in order to prevent recursion.

Diff Detail

Repository
rL LLVM

Event Timeline

tra created this revision.Feb 8 2018, 11:34 AM
jlebar removed a reviewer: jlebar.Feb 8 2018, 11:56 AM
jlebar added a subscriber: jlebar.
arsenm accepted this revision.Feb 9 2018, 8:13 AM

LGTM

This revision is now accepted and ready to land.Feb 9 2018, 8:13 AM
This revision was automatically updated to reflect the committed changes.