internal.types.int
class Int[N]
Extends
Int · View complete class API →
Constructors
5
Properties
2
Methods
4
Special methods
42
__abs__(self: Self, Self: type)
declare i{=N} @llvm.abs.i{=N}(i{=N}, i1)
%0 = call i{=N} @llvm.abs.i{=N}(i{=N} %self, i1 false)
ret i{=N} %0
__lshift__(self: Self, other: Int[N], Self: type)
__lshift__(self: Self, other: int, Self: type)
__rshift__(self: Self, other: Int[N], Self: type)
__rshift__(self: Self, other: int, Self: type)
__eq__(self: Self, other: Int[N], Self: type)
%0 = icmp eq i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__ne__(self: Self, other: Int[N], Self: type)
%0 = icmp ne i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__lt__(self: Self, other: Int[N], Self: type)
%0 = icmp slt i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__gt__(self: Self, other: Int[N], Self: type)
%0 = icmp sgt i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__le__(self: Self, other: Int[N], Self: type)
%0 = icmp sle i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__ge__(self: Self, other: Int[N], Self: type)
%0 = icmp sge i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__pow__(self: Self, exp: Int[N], Self: type)
__pow__(self: Self, exp: Literal[int], Self: type)
__atomic_xchg__(d: Ptr[Int[N]], b: Int[N])
%tmp = atomicrmw xchg ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_add__(d: Ptr[Int[N]], b: Int[N])
%tmp = atomicrmw add ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_sub__(d: Ptr[Int[N]], b: Int[N])
%tmp = atomicrmw sub ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_and__(d: Ptr[Int[N]], b: Int[N])
%tmp = atomicrmw and ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_nand__(d: Ptr[Int[N]], b: Int[N])
%tmp = atomicrmw nand ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_or__(d: Ptr[Int[N]], b: Int[N])
%tmp = atomicrmw or ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_xor__(d: Ptr[Int[N]], b: Int[N])
%tmp = atomicrmw xor ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_min__(d: Ptr[Int[N]], b: Int[N])
%tmp = atomicrmw min ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
class UInt[N]
Extends
UInt · View complete class API →
Constructors
4
Properties
2
Methods
4
Special methods
42
__lshift__(self: Self, other: UInt[N], Self: type)
__lshift__(self: Self, other: int, Self: type)
__rshift__(self: Self, other: UInt[N], Self: type)
__rshift__(self: Self, other: int, Self: type)
__eq__(self: Self, other: UInt[N], Self: type)
%0 = icmp eq i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__ne__(self: Self, other: UInt[N], Self: type)
%0 = icmp ne i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__lt__(self: Self, other: UInt[N], Self: type)
%0 = icmp ult i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__gt__(self: Self, other: UInt[N], Self: type)
%0 = icmp ugt i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__le__(self: Self, other: UInt[N], Self: type)
%0 = icmp ule i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__ge__(self: Self, other: UInt[N], Self: type)
%0 = icmp uge i{=N} %self, %other
%1 = zext i1 %0 to i8
ret i8 %1
__pow__(self: Self, exp: UInt[N], Self: type)
__pow__(self: Self, exp: Literal[int], Self: type)
__atomic_xchg__(d: Ptr[UInt[N]], b: UInt[N])
%tmp = atomicrmw xchg ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_add__(d: Ptr[UInt[N]], b: UInt[N])
%tmp = atomicrmw add ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_sub__(d: Ptr[UInt[N]], b: UInt[N])
%tmp = atomicrmw sub ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_and__(d: Ptr[UInt[N]], b: UInt[N])
%tmp = atomicrmw and ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_nand__(d: Ptr[UInt[N]], b: UInt[N])
%tmp = atomicrmw nand ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_or__(d: Ptr[UInt[N]], b: UInt[N])
%tmp = atomicrmw or ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_xor__(d: Ptr[UInt[N]], b: UInt[N])
%tmp = atomicrmw xor ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp
__atomic_min__(d: Ptr[UInt[N]], b: UInt[N])
%tmp = atomicrmw umin ptr %d, i{=N} %b seq_cst
ret i{=N} %tmp