m2isar.frontends.coredsl2.constant_expressions
Evaluate a subset of release 2.0.21 constant expressions.
With no resolver the evaluator is literal-only. A caller may supply a scoped ISA-parameter resolver; symbol legality and evaluation cycles belong to it.
A None result means evaluation needs elaboration/type information, or an unsupported node. It is never proof that an expression is an invalid constant.
Attributes
Functions
|
Return value, bit size and signedness as IntegerValueConverter does. |
|
|
|
Apply a fixed-width integer cast using two's-complement representation. |
|