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

@@ -108,6 +108,9 @@ pub struct RegClassData {
/// How many register units to allocate per register.
pub width: u8,
/// Index of the register bank this class belongs to.
pub bank: u8,
/// The first register unit in this class.
pub first: RegUnit,