simd
class Vec[T, N]
Fields
2
T
type
N
Literal[int]
Constructors
4
Methods
46
load(data: Ptr[T], offset: int = 0, alignment: Literal[int] = 1, mask = NoneType(), passthrough = NoneType())
gather(data: Ptr[T], indices: Vec[int, N], alignment: Literal[int] = 1, mask = NoneType(), passthrough = NoneType())
scatter(self, data: Ptr[T], indices: Vec[int, N], alignment: Literal[int] = 1, mask = NoneType())
scatter(self: Vec[T, N])
lshift(self, other: Vec[T, N], check: Literal[bool] = True)
lshift(self, other: T, check: Literal[bool] = True)
lshift(self, other: int, check: Literal[bool] = True)
rshift(self, other: Vec[T, N], check: Literal[bool] = True)
rshift(self, other: T, check: Literal[bool] = True)
rshift(self, other: int, check: Literal[bool] = True)
floordiv(self, other: Vec[T, N], check: Literal[bool] = True)
floordiv(self, other: T, check: Literal[bool] = True)
mod(self, other: Vec[T, N], check: Literal[bool] = True)
mod(self, other: T, check: Literal[bool] = True)
Special methods
35
__lshift__(self, other: Vec[T, N])
__lshift__(self, other: T)
__lshift__(self, other: int)
__rshift__(self, other: Vec[T, N])
__rshift__(self, other: T)
__rshift__(self, other: int)
class Ptr[T]
Extends
Ptr ยท View complete class API โ
Special methods
2
__getitem__(self: Ptr[Vec[S, M]], index: int, S: type, M: Literal[int])
%address = getelementptr <{=M} x {=S}>, ptr %self, i64 %index
%result = load <{=M} x {=S}>, ptr %address, align 1
ret <{=M} x {=S}> %result