Add a RISC-V target.

Flesh out the directory structure for defining target instruction set
architectures. Use RISC-V as a startgin point because it is so simple.
This commit is contained in:
Jakob Stoklund Olesen
2016-04-06 11:32:43 -07:00
parent 5388f68437
commit 6e2e7bfb73
6 changed files with 83 additions and 3 deletions

16
meta/target/__init__.py Normal file
View File

@@ -0,0 +1,16 @@
"""
Cretonne target definitions
---------------------------
The :py:mod:`target` package contains sub-packages for each target instruction
set architecture supported by Cretonne.
"""
from . import riscv
def all_targets():
"""
Get a list of all the supported targets. Each target is represented as a
:py:class:`cretonne.Target` instance.
"""
return [riscv.target]