Add an Encoding meta-language class.

Start adding some RISC-V encodings too as a way of testing the ergonomics.
This commit is contained in:
Jakob Stoklund Olesen
2016-08-03 15:58:41 -07:00
parent 66f14138bb
commit 4987282bbb
5 changed files with 133 additions and 6 deletions

View File

@@ -25,11 +25,9 @@ RV32G / RV64G
"""
from cretonne import Target, CPUMode
import cretonne.base
import defs
import encodings
target = Target('riscv', [cretonne.base.instructions])
# Re-export the primary target definition.
target = defs.target
# CPU modes for 32-bit and 64-bit operation.
RV32 = CPUMode('RV32', target)
RV64 = CPUMode('RV64', target)