This is an archive of the discontinued LLVM Phabricator instance.

Revert AsmParser changes
AbandonedPublic

Authored by colinl on Jan 4 2016, 2:54 PM.

Details

Summary

This reverts r256669, r256542, r252440, r252439, r252435, and a number of commits that added assembly tests per request.

X86AsmParser needed to be added to X86.td since instructions were added that have a dot in the mnemonic.

Creating a review for this since the revert is non-trivial.

Diff Detail

Repository
rL LLVM

Event Timeline

colinl updated this revision to Diff 43927.Jan 4 2016, 2:54 PM
colinl retitled this revision from to Revert AsmParser changes.
colinl updated this object.
colinl set the repository for this revision to rL LLVM.
colinl added a subscriber: llvm-commits.
craig.topper edited edge metadata.Jan 9 2016, 3:07 PM

I don't see the removal of the Hexagon AsmParser directory here or the tests.

utils/TableGen/AsmMatcherEmitter.cpp
2577

This should be Operands.size() - 1

2585

This Mnemonic.empty() check wasn't here before

2897

This was MaxNumOperands + 1 before

2908

This isToken check did not exist before your changes

2942

The Mnemonic.empty() check and the SIndex variable did not exist before your changes.

2956

This should go back i = 0

2958

This was i+1 before your changes

2960

As was this

2963

And this

2979

And i+1 here and below

mcrosier resigned from this revision.Jan 12 2016, 7:53 AM
mcrosier removed a reviewer: mcrosier.
colinl added a comment.Feb 8 2016, 1:44 PM

Is there interest in pursuing this revert? The feedback so far has been against a revert due to causing out of tree churn.

My feedback is also against a revert since the modest code size regression has been fixed, the only performance edge case is to targets that don't have mnemonic lead instructions e.g. Hexagon, and the actual performance impact to real world instruction combinations is minimal.

Unless there's opposition I'll close this.

colinl abandoned this revision.Mar 18 2016, 10:12 AM