bfloat16
class bfloat16
Constructors
11
__new__(self: float) -> bfloat16
Added by
internal.types.float%0 = fptrunc double %self to bfloat
ret bfloat %0
__new__[N: Literal[int]](what: Int[N]) -> bfloat16
Added by
internal.ops%0 = sitofp i{=N} %what to bfloat
ret bfloat %0
__new__[N: Literal[int]](what: UInt[N]) -> bfloat16
Added by
internal.ops%0 = uitofp i{=N} %what to bfloat
ret bfloat %0
__new__(what: float128) -> bfloat16
Added by
internal.ops%0 = fptrunc fp128 %what to bfloat
ret bfloat %0
__new__(what: float32) -> bfloat16
Added by
internal.ops%0 = fptrunc float %what to bfloat
ret bfloat %0
__new__(what: float16) -> bfloat16
Added by
internal.ops%0 = fpext float16 %what to float
%1 = fptrunc float %0 to bfloat
ret bfloat %1
Methods
2
Special methods
35
__float__(self: Self) -> float
Added by
internal.types.float%0 = fpext bfloat %self to double
ret double %0
__bool__(self: Self) -> bool
Added by
internal.types.float%0 = fcmp une bfloat %self, 0.000000e+00
%1 = zext i1 %0 to i8
ret i8 %1
__add__(a: bfloat16, b: bfloat16) -> bfloat16
Added by
internal.types.float%tmp = fadd bfloat %a, %b
ret bfloat %tmp
__add__(self: Self, b: float)
Added by
internal.ops__add__(self: Self, b: float128)
Added by
internal.ops__add__(self: Self, b: float32)
Added by
internal.ops__add__(self: Self, b: float16)
Added by
internal.ops__add__(self: Self, b: Int)
Added by
internal.ops__add__(self: Self, b: UInt)
Added by
internal.ops__add__(self: Self, b: bool)
Added by
internal.ops__sub__(a: bfloat16, b: bfloat16) -> bfloat16
Added by
internal.types.float%tmp = fsub bfloat %a, %b
ret bfloat %tmp
__sub__(self: Self, b: float)
Added by
internal.ops__sub__(self: Self, b: float128)
Added by
internal.ops__sub__(self: Self, b: float32)
Added by
internal.ops__sub__(self: Self, b: float16)
Added by
internal.ops__sub__(self: Self, b: Int)
Added by
internal.ops__sub__(self: Self, b: UInt)
Added by
internal.ops__sub__(self: Self, b: bool)
Added by
internal.ops__mul__(a: bfloat16, b: bfloat16) -> bfloat16
Added by
internal.types.float%tmp = fmul bfloat %a, %b
ret bfloat %tmp
__mul__(self: Self, b: float)
Added by
internal.ops__mul__(self: Self, b: float128)
Added by
internal.ops__mul__(self: Self, b: float32)
Added by
internal.ops__mul__(self: Self, b: float16)
Added by
internal.ops__mul__(self: Self, b: Int)
Added by
internal.ops__mul__(self: Self, b: UInt)
Added by
internal.ops__mul__(self: Self, b: bool)
Added by
internal.ops__floordiv__(self: Self, other: bfloat16) -> bfloat16
Added by
internal.types.float__floordiv__(self: Self, b: float)
Added by
internal.ops__floordiv__(self: Self, b: float128)
Added by
internal.ops__floordiv__(self: Self, b: float32)
Added by
internal.ops__floordiv__(self: Self, b: float16)
Added by
internal.ops__floordiv__(self: Self, b: Int)
Added by
internal.ops__floordiv__(self: Self, b: UInt)
Added by
internal.ops__floordiv__(self: Self, b: bool)
Added by
internal.ops__truediv__(self: Self, other: bfloat16) -> bfloat16
Added by
internal.types.float__truediv__(self: Self, b: float)
Added by
internal.ops__truediv__(self: Self, b: float128)
Added by
internal.ops__truediv__(self: Self, b: float32)
Added by
internal.ops__truediv__(self: Self, b: float16)
Added by
internal.ops__truediv__(self: Self, b: Int)
Added by
internal.ops__truediv__(self: Self, b: UInt)
Added by
internal.ops__truediv__(self: Self, b: bool)
Added by
internal.ops__mod__(self: Self, other: bfloat16) -> bfloat16
Added by
internal.types.float__mod__(self: Self, b: float)
Added by
internal.ops__mod__(self: Self, b: float128)
Added by
internal.ops__mod__(self: Self, b: float32)
Added by
internal.ops__mod__(self: Self, b: float16)
Added by
internal.ops__mod__(self: Self, b: Int)
Added by
internal.ops__mod__(self: Self, b: UInt)
Added by
internal.ops__mod__(self: Self, b: bool)
Added by
internal.ops__divmod__(self: Self, other: bfloat16) -> Tuple[(bfloat16, bfloat16)]
Added by
internal.types.float__divmod__(self: Self, b: float)
Added by
internal.ops__divmod__(self: Self, b: float128)
Added by
internal.ops__divmod__(self: Self, b: float32)
Added by
internal.ops__divmod__(self: Self, b: float16)
Added by
internal.ops__divmod__(self: Self, b: Int)
Added by
internal.ops__divmod__(self: Self, b: UInt)
Added by
internal.ops__divmod__(self: Self, b: bool)
Added by
internal.ops__eq__(a: bfloat16, b: bfloat16) -> bool
Added by
internal.types.float%tmp = fcmp oeq bfloat %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__eq__(self: Self, b: float)
Added by
internal.ops__eq__(self: Self, b: float128)
Added by
internal.ops__eq__(self: Self, b: float32)
Added by
internal.ops__eq__(self: Self, b: float16)
Added by
internal.ops__eq__(self: Self, b: Int)
Added by
internal.ops__eq__(self: Self, b: UInt)
Added by
internal.ops__eq__(self: Self, b: bool)
Added by
internal.ops__ne__(a: bfloat16, b: bfloat16) -> bool
Added by
internal.types.float%tmp = fcmp une bfloat %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__ne__(self: Self, b: float)
Added by
internal.ops__ne__(self: Self, b: float128)
Added by
internal.ops__ne__(self: Self, b: float32)
Added by
internal.ops__ne__(self: Self, b: float16)
Added by
internal.ops__ne__(self: Self, b: Int)
Added by
internal.ops__ne__(self: Self, b: UInt)
Added by
internal.ops__ne__(self: Self, b: bool)
Added by
internal.ops__lt__(a: bfloat16, b: bfloat16) -> bool
Added by
internal.types.float%tmp = fcmp olt bfloat %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__lt__(self: Self, b: float)
Added by
internal.ops__lt__(self: Self, b: float128)
Added by
internal.ops__lt__(self: Self, b: float32)
Added by
internal.ops__lt__(self: Self, b: float16)
Added by
internal.ops__lt__(self: Self, b: Int)
Added by
internal.ops__lt__(self: Self, b: UInt)
Added by
internal.ops__lt__(self: Self, b: bool)
Added by
internal.ops__gt__(a: bfloat16, b: bfloat16) -> bool
Added by
internal.types.float%tmp = fcmp ogt bfloat %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__gt__(self: Self, b: float)
Added by
internal.ops__gt__(self: Self, b: float128)
Added by
internal.ops__gt__(self: Self, b: float32)
Added by
internal.ops__gt__(self: Self, b: float16)
Added by
internal.ops__gt__(self: Self, b: Int)
Added by
internal.ops__gt__(self: Self, b: UInt)
Added by
internal.ops__gt__(self: Self, b: bool)
Added by
internal.ops__le__(a: bfloat16, b: bfloat16) -> bool
Added by
internal.types.float%tmp = fcmp ole bfloat %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__le__(self: Self, b: float)
Added by
internal.ops__le__(self: Self, b: float128)
Added by
internal.ops__le__(self: Self, b: float32)
Added by
internal.ops__le__(self: Self, b: float16)
Added by
internal.ops__le__(self: Self, b: Int)
Added by
internal.ops__le__(self: Self, b: UInt)
Added by
internal.ops__le__(self: Self, b: bool)
Added by
internal.ops__ge__(a: bfloat16, b: bfloat16) -> bool
Added by
internal.types.float%tmp = fcmp oge bfloat %a, %b
%res = zext i1 %tmp to i8
ret i8 %res
__ge__(self: Self, b: float)
Added by
internal.ops__ge__(self: Self, b: float128)
Added by
internal.ops__ge__(self: Self, b: float32)
Added by
internal.ops__ge__(self: Self, b: float16)
Added by
internal.ops__ge__(self: Self, b: Int)
Added by
internal.ops__ge__(self: Self, b: UInt)
Added by
internal.ops__ge__(self: Self, b: bool)
Added by
internal.ops__abs__(a: bfloat16) -> bfloat16
Added by
internal.types.floatdeclare bfloat @llvm.fabs.bf16(bfloat %a)
%tmp = call bfloat @llvm.fabs.bf16(bfloat %a)
ret bfloat %tmp
__floor__(a: bfloat16) -> bfloat16
Added by
internal.types.floatdeclare bfloat @llvm.floor.bf16(bfloat %a)
%tmp = call bfloat @llvm.floor.bf16(bfloat %a)
ret bfloat %tmp
__ceil__(a: bfloat16) -> bfloat16
Added by
internal.types.floatdeclare bfloat @llvm.ceil.bf16(bfloat %a)
%tmp = call bfloat @llvm.ceil.bf16(bfloat %a)
ret bfloat %tmp
__trunc__(a: bfloat16) -> bfloat16
Added by
internal.types.floatdeclare bfloat @llvm.trunc.bf16(bfloat %a)
%tmp = call bfloat @llvm.trunc.bf16(bfloat %a)
ret bfloat %tmp
__pow__(a: bfloat16, b: bfloat16) -> bfloat16
Added by
internal.types.floatdeclare bfloat @llvm.pow.bf16(bfloat %a, bfloat %b)
%tmp = call bfloat @llvm.pow.bf16(bfloat %a, bfloat %b)
ret bfloat %tmp
__pow__(self: Self, b: float)
Added by
internal.ops__pow__(self: Self, b: float128)
Added by
internal.ops__pow__(self: Self, b: float32)
Added by
internal.ops__pow__(self: Self, b: float16)
Added by
internal.ops__pow__(self: Self, b: Int)
Added by
internal.ops__pow__(self: Self, b: UInt)
Added by
internal.ops__pow__(self: Self, b: bool)
Added by
internal.ops