Define register classes for 4 ISAs.

This commit is contained in:
Jakob Stoklund Olesen
2016-11-11 15:08:12 -08:00
parent e1c0171b2c
commit 060735adfe
5 changed files with 70 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ data types, and the H-registers even less so. Rather than trying to model the
H-registers accurately, we'll avoid using them in both I32 and I64 modes.
"""
from __future__ import absolute_import
from cdsl.registers import RegBank
from cdsl.registers import RegBank, RegClass
from .defs import ISA
@@ -37,3 +37,6 @@ FloatRegs = RegBank(
'FloatRegs', ISA,
'SSE floating point registers',
units=16, prefix='xmm')
GPR = RegClass('GPR', IntRegs)
FPR = RegClass('FPR', FloatRegs)