m2isar.frontends.coredsl2.source_validator
Validate source information that is lost when lowering to the metamodel.
Rules follow the analyzer in the source bundle of MINRES CoreDSL 2.0.21. The semantic pass handles known integer/array types and scoped ISA parameters. Remaining elaboration and provider gaps are tracked in the parity map.
Attributes
Classes
Validation errors reported together: the first is raised, the rest are attached to it. |
|
Lexical scopes in |
|
Functions
|
|
|
The release's linking diagnostic for a name that does not resolve. |
|
Mark |
|
Names of the instruction sets a core or instruction set builds on. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- unresolved(ctx, kind, name)[source]
The release’s linking diagnostic for a name that does not resolve.
- class Diagnostics[source]
Bases:
listValidation errors reported together: the first is raised, the rest are attached to it.
- in_progress(active, key)[source]
Mark
keyactive for the block; yield whether it already was (a cycle).
- dependencies(definition)[source]
Names of the instruction sets a core or instruction set builds on.
- contributors(definitions, root)[source]
rootand every definition it builds on, each once, dependencies first.
- provided(definitions, starts)[source]
startsand the definitions they build on, each once, in lookup precedence order.
- class SourceValidator(warnings_info)[source]
Bases:
m2isar.frontends.coredsl2.parser_gen.CoreDSL2Visitor,m2isar.warnings.WarningsManager