Add a register bank index to RegClassData.

This makes it possible to find the register bank that contains a
register class.
This commit is contained in:
Jakob Stoklund Olesen
2017-05-15 13:01:41 -07:00
parent 29dc723e25
commit 621f3a2f50
4 changed files with 13 additions and 6 deletions

View File

@@ -87,6 +87,7 @@ class RegBank(object):
align = next_power_of_two(align)
self.first_unit = (u + align - 1) & -align
self.index = len(isa.regbanks)
isa.regbanks.append(self)
def __repr__(self):