Split out the typevar module.

- cdsl.typevar defines TypeVar and TypeSet classes.
This commit is contained in:
Jakob Stoklund Olesen
2016-11-08 11:18:14 -08:00
parent 6eaa8eb382
commit 5498169ca0
5 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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.

View File

@@ -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