Along with the mypy tool, this helps find bugs in the Python code handling the instruction definition data structures.
20 lines
508 B
Python
20 lines
508 B
Python
"""
|
|
Cretonne target ISA definitions
|
|
-------------------------------
|
|
|
|
The :py:mod:`isa` package contains sub-packages for each target instruction set
|
|
architecture supported by Cretonne.
|
|
"""
|
|
from __future__ import absolute_import
|
|
from . import riscv
|
|
from cretonne import TargetISA # noqa
|
|
|
|
|
|
def all_isas():
|
|
# type: () -> List[TargetISA]
|
|
"""
|
|
Get a list of all the supported target ISAs. Each target ISA is represented
|
|
as a :py:class:`cretonne.TargetISA` instance.
|
|
"""
|
|
return [riscv.isa]
|