Browse Source

Split out the typevar module.

- cdsl.typevar defines TypeVar and TypeSet classes.
pull/3/head
Jakob Stoklund Olesen 8 years ago
parent
commit
5498169ca0
  1. 2
      docs/metaref.rst
  2. 0
      lib/cretonne/meta/cdsl/test_typevar.py
  3. 0
      lib/cretonne/meta/cdsl/typevar.py
  4. 2
      lib/cretonne/meta/cretonne/__init__.py
  5. 2
      lib/cretonne/meta/cretonne/base.py

2
docs/metaref.rst

@ -102,7 +102,7 @@ instances that refer to a *type variable* instead of a concrete value type.
Polymorphism only works for SSA value operands. Other operands have a fixed Polymorphism only works for SSA value operands. Other operands have a fixed
operand kind. operand kind.
.. autoclass:: cretonne.typevar.TypeVar .. autoclass:: cdsl.typevar.TypeVar
:members: :members:
If multiple operands refer to the same type variable they will be required to If multiple operands refer to the same type variable they will be required to

0
lib/cretonne/meta/cretonne/test_typevar.py → lib/cretonne/meta/cdsl/test_typevar.py

0
lib/cretonne/meta/cretonne/typevar.py → lib/cretonne/meta/cdsl/typevar.py

2
lib/cretonne/meta/cretonne/__init__.py

@ -23,7 +23,7 @@ except ImportError:
TYPE_CHECKING = False TYPE_CHECKING = False
if TYPE_CHECKING: if TYPE_CHECKING:
from .typevar import TypeVar # noqa from cdsl.typevar import TypeVar # noqa
# Defining instructions. # Defining instructions.

2
lib/cretonne/meta/cretonne/base.py

@ -6,8 +6,8 @@ support.
""" """
from __future__ import absolute_import from __future__ import absolute_import
from cdsl.operands import VARIABLE_ARGS from cdsl.operands import VARIABLE_ARGS
from cdsl.typevar import TypeVar
from . import Operand, Instruction, InstructionGroup from . import Operand, Instruction, InstructionGroup
from .typevar import TypeVar
from base.types import i8, f32, f64, b1 from base.types import i8, f32, f64, b1
from base.immediates import imm64, uimm8, ieee32, ieee64, immvector from base.immediates import imm64, uimm8, ieee32, ieee64, immvector
from base.immediates import intcc, floatcc from base.immediates import intcc, floatcc

Loading…
Cancel
Save