Jakob Stoklund Olesen
63a6ade0a5
Add InstructionFormat.imm_fields.
...
Consolidate the imm_members and imm_kinds into this list so the
FormatField is the single definition of these properties.
This makes it easier to access the precomputed FormatFields
parametrically, avoiding going through getattr().
This is better for type checking too.
2017-03-31 13:46:39 -07:00
Jakob Stoklund Olesen
2f50ae3166
Add an IsEqual FieldPredicate.
...
Compare an immediate operand to a constant value.
2017-03-31 13:46:38 -07:00
Jakob Stoklund Olesen
fc979c474f
Add mypy types for gen_settings.py.
2017-03-30 18:42:06 -07:00
Jakob Stoklund Olesen
cfe2c7f46f
Add more mypy annotations.
2017-03-30 15:16:44 -07:00
Jakob Stoklund Olesen
02051c4764
Add mypy annotations to cdsl.predicates, settings.
...
Wherein we learned that only BoolSettings can be used as predicates.
2017-03-30 14:11:19 -07:00
Jakob Stoklund Olesen
e6b959436d
Split out predicates and settings.
...
- cdsl.predicates defines classes for describing predicates.
- cdsl.settings defines classes for describing settings.
- base.settings defines shared settings.
2016-11-08 10:37:17 -08:00