Files
wasmtime/meta/target/riscv/defs.py
Jakob Stoklund Olesen 9cdf6edd62 Add an Encoding meta-language class.
Start adding some RISC-V encodings too as a way of testing the ergonomics.
2016-08-03 16:04:29 -07:00

15 lines
279 B
Python

"""
RISC-V definitions.
Commonly used definitions.
"""
from cretonne import Target, CPUMode
import cretonne.base
target = Target('riscv', [cretonne.base.instructions])
# CPU modes for 32-bit and 64-bit operation.
RV32 = CPUMode('RV32', target)
RV64 = CPUMode('RV64', target)