Jakob Stoklund Olesen
89ff979d75
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
b31ca83b91
Add an IsEqual FieldPredicate.
...
Compare an immediate operand to a constant value.
2017-03-31 13:46:38 -07:00
Jakob Stoklund Olesen
a9ec28ab7c
Add mypy types for gen_settings.py.
2017-03-30 18:42:06 -07:00
Jakob Stoklund Olesen
a82e521291
Add more mypy annotations.
2017-03-30 15:16:44 -07:00
Jakob Stoklund Olesen
ae12c94d04
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
2fe61e83f6
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