This is an archive of the discontinued LLVM Phabricator instance.

[Bitcode] Refactor attribute group writing to avoid getSlotAttributes
ClosedPublic

Authored by rnk on Apr 19 2017, 6:16 PM.

Details

Summary

That API creates a temporary AttributeList to carry an index and a
single AttributeSet. We need to carry the index in addition to the set,
because that is how attribute groups are currently encoded.

NFC

Diff Detail

Repository
rL LLVM

Event Timeline

rnk created this revision.Apr 19 2017, 6:16 PM
rnk updated this revision to Diff 96000.Apr 20 2017, 11:53 AM
  • rebase after splitting out Attributes.cpp changes
rnk updated this revision to Diff 96447.Apr 24 2017, 12:48 PM
  • really rebase
rnk added a comment.Apr 24 2017, 12:52 PM

I'm going to go ahead and land this. At first I wanted more eyes to confirm that this doesn't change functionality, but I'm pretty convinced now after staring at more.

pcc accepted this revision.Apr 24 2017, 1:15 PM

I don't see anything wrong with this, but I don't have 100% confidence. I'll trust your judgement since you probably have more of attributes paged into your head at this point.

This revision is now accepted and ready to land.Apr 24 2017, 1:15 PM
This revision was automatically updated to reflect the committed changes.