mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Add support for attribute groups in the value enumerator.
Attribute groups are essentially all AttributeSets which are used by the program. Enumerate them here. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -427,6 +427,16 @@ void ValueEnumerator::EnumerateAttributes(const AttributeSet &PAL) {
|
||||
Attribute.push_back(PAL);
|
||||
Entry = Attribute.size();
|
||||
}
|
||||
|
||||
// Do lookups for all attribute groups.
|
||||
for (unsigned i = 0, e = PAL.getNumSlots(); i != e; ++i) {
|
||||
AttributeSet AS = PAL.getSlotAttributes(i);
|
||||
unsigned &Entry = AttributeSetMap[AS];
|
||||
if (Entry == 0) {
|
||||
AttributeSets.push_back(AS);
|
||||
Entry = AttributeSets.size();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ValueEnumerator::incorporateFunction(const Function &F) {
|
||||
|
Reference in New Issue
Block a user