Split out the typevar module.
- cdsl.typevar defines TypeVar and TypeSet classes.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user