This is an archive of the discontinued LLVM Phabricator instance.

TII: Fix inlineasm size counting comments as insts
ClosedPublic

Authored by arsenm on Jun 15 2016, 7:11 PM.

Details

Summary

The main problem was counting comments on their own line as instructions.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 60944.Jun 15 2016, 7:11 PM
arsenm retitled this revision from to TII: Fix inlineasm size counting comments as insts.
arsenm updated this object.
arsenm added a subscriber: llvm-commits.
echristo edited edge metadata.Jun 20 2016, 5:29 PM

I agree with the idea, how are you now splitting things out?

-eric

arsenm updated this revision to Diff 62025.Jun 27 2016, 3:24 PM
arsenm edited edge metadata.

Add comment, another test

I agree with the idea, how are you now splitting things out?

-eric

It's not really different from what the comment above already describes. It just lies about what happens for comments, and this fixes it to check in the right order

echristo accepted this revision.Jul 1 2016, 3:11 PM
echristo edited edge metadata.

I'm not sure about the whole "get length" aspect of the API, but I agree what you're doing makes as much sense as what's going on now.

Thanks!

-eric

This revision is now accepted and ready to land.Jul 1 2016, 3:11 PM
arsenm closed this revision.Jul 1 2016, 4:34 PM

r274405