Files
wasmtime/docs/metaref.rst
Jakob Olesen ec918fe332 Begin defining the meta language.
The Cretonne meta language is used to describe Cretonne instructions, both the
target independent ones in the base instruction set and real target
instructions.

Start by providing type definitions matching langref, and begin the meta
language reference using autodoc to pull in the PYthon definitions.
2016-02-04 19:51:38 -08:00

34 lines
945 B
ReStructuredText

********************************
Cretonne Meta Language Reference
********************************
.. default-domain:: py
.. highlight:: python
The Cretonne meta language is used to define instructions for Cretonne. It is a
domain specific language embedded in Python.
An instruction set is described by a Python module under the :file:`meta`
directory that has a global variable called ``instructions``. The basic
Cretonne instruction set described in :doc:`langref` is defined by the Python
module :mod:`cretonne.instrs`.
Types
=====
Concrete value types are represented as instances of :class:`cretonne.Type`. There are
subclasses to represent scalar and vector types.
.. autoclass:: cretonne.Type
.. autoclass:: cretonne.ScalarType
:members:
.. autoclass:: cretonne.VectorType
:members:
.. autoclass:: cretonne.IntType
:members:
.. autoclass:: cretonne.FloatType
:members:
.. automodule:: cretonne.types
:members: