Add vector instructions.

Use derived type variables with the 'LaneOf' function.

Add u8 immediates to be used for lane indexes and bit shifts.
This commit is contained in:
Jakob Stoklund Olesen
2016-05-20 15:36:03 -07:00
parent b44d6c6541
commit b1dd4ad373
8 changed files with 73 additions and 38 deletions

View File

@@ -296,7 +296,7 @@ class TypeVar(object):
def __str__(self):
return "`{}`".format(self.name)
def lane(self):
def lane_of(self):
"""
Return a derived type variable that is the scalar lane type of this
type variable.
@@ -304,7 +304,7 @@ class TypeVar(object):
When this type variable assumes a scalar type, the derived type will be
the same scalar type.
"""
return TypeVar(None, None, base=self, derived_func='Lane')
return TypeVar(None, None, base=self, derived_func='LaneOf')
def as_bool(self):
"""