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
Paths
| Differential D32262
[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 NFC
Diff Detail
Event TimelineComment Actions 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. Comment Actions 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 Closed by commit rL301245: [Bitcode] Refactor attribute group writing to avoid getSlotAttributes (authored by rnk). · Explain WhyApr 24 2017, 1:51 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 96462 llvm/trunk/include/llvm/IR/Attributes.h
llvm/trunk/lib/Bitcode/Writer/BitcodeWriter.cpp
llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.h
llvm/trunk/lib/Bitcode/Writer/ValueEnumerator.cpp
llvm/trunk/lib/IR/Attributes.cpp
|