m2isar.metamodel.type_info
This module contains helper data_type classes for modeling Symbol and data types for the architectural part of an M2-ISA-R model. The architectural part is anything but the functional behavior of functions and instructions.
Attributes
Classes
Generic enumeration. |
|
Common base of struct and union types. Fields are kept in declaration order. |
|
Common base of struct and union types. Fields are kept in declaration order. |
|
Common base of struct and union types. Fields are kept in declaration order. |
|
Module Contents
- class TypeKind[source]
Bases:
enum.EnumGeneric enumeration.
Derive from this class to define new enumerations.
- class ArrayType(element_type: PrimitiveType | FloatType, length: int)[source]
- element_type: PrimitiveType | FloatType[source]
- class CompositeType(name: str, fields: list[CompositeField])[source]
Common base of struct and union types. Fields are kept in declaration order.
- field(name: str) CompositeField | None[source]
- class StructType(name: str, fields: list[tuple[str, Any, int]])[source]
Bases:
CompositeTypeCommon base of struct and union types. Fields are kept in declaration order.