Split out instruction definitions.

- cdsl.instructions defines the Instruction class.
- base.instructions defines the base instruction set.
This commit is contained in:
Jakob Stoklund Olesen
2016-11-08 12:08:14 -08:00
parent 2a15130518
commit 5fa322f797
15 changed files with 360 additions and 348 deletions

View File

@@ -5,9 +5,9 @@ Commonly used definitions.
"""
from __future__ import absolute_import
from cretonne import TargetISA, CPUMode
import cretonne.base
import base.instructions
isa = TargetISA('riscv', [cretonne.base.instructions])
isa = TargetISA('riscv', [base.instructions.GROUP])
# CPU modes for 32-bit and 64-bit operation.
RV32 = CPUMode('RV32', isa)