This is an archive of the discontinued LLVM Phabricator instance.

TableGen: Constrain inputs of reg_sequence to be same type
Needs ReviewPublic

Authored by arsenm on Feb 15 2016, 4:39 PM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None

Diff Detail

Event Timeline

arsenm updated this revision to Diff 48039.Feb 15 2016, 4:39 PM
arsenm retitled this revision from to TableGen: Constrain inputs of reg_sequence to be same type.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
ab added a subscriber: ab.Jun 28 2016, 7:44 AM

No objection; looks like AMDGPU is the only user of REG_SEQUENCE in patterns ;)

I think the various ARM DAGToDAG also all use the same type.

utils/TableGen/CodeGenDAGPatterns.cpp
1887

TP.error() and return false?

Move this out of the if(I>1) so that it also checks the first child?