package core:sys/llvm

Warning: This was generated for -target:windows_amd64 and might not represent every target this package supports.

⌘K
Ctrl+K
or
/

    Overview

    Bit Manipulation Intrinsics

    Code Generator Intrinsics

    General Intrinsics

    Standard C Library Intrinsics

    Index

    Constants (0)

    This section is empty.

    Variables (0)

    This section is empty.

    Procedures (178)
    Procedure Groups (0)

    This section is empty.

    Types

    Prefetch_Cache ¶

    Prefetch_Cache :: enum i32 {
    	Instruction = 0, 
    	Data        = 1, 
    }

    Prefetch_Locality ¶

    Prefetch_Locality :: enum i32 {
    	None = 0, 
    	Low  = 1, 
    	Mid  = 2, 
    	High = 3, 
    }

    Prefetch_Read_Write ¶

    Prefetch_Read_Write :: enum i32 {
    	Read  = 0, 
    	Write = 1, 
    }

    Constants

    This section is empty.

    Variables

    This section is empty.

    Procedures

    acos_f16 ¶

    @(link_name="llvm.acos.f16")
    acos_f16 :: proc "none" (f16) -> f16 ---
     

    LLVM 19+

    acos_f32 ¶

    @(link_name="llvm.acos.f32")
    acos_f32 :: proc "none" (f32) -> f32 ---
     

    LLVM 19+

    acos_f64 ¶

    @(link_name="llvm.acos.f64")
    acos_f64 :: proc "none" (f64) -> f64 ---

    address_of_return_address ¶

    @(link_name="llvm.addressofreturnaddress.p0")
    address_of_return_address :: proc "none" () -> rawptr ---
     

    x86 and AArch64 only

    asin_f16 ¶

    @(link_name="llvm.asin.f16")
    asin_f16 :: proc "none" (f16) -> f16 ---
     

    LLVM 19+

    asin_f32 ¶

    @(link_name="llvm.asin.f32")
    asin_f32 :: proc "none" (f32) -> f32 ---
     

    LLVM 19+

    asin_f64 ¶

    @(link_name="llvm.asin.f64")
    asin_f64 :: proc "none" (f64) -> f64 ---

    atan2_f16 ¶

    @(link_name="llvm.atan2.f16")
    atan2_f16 :: proc "none" (y, x: f16) -> f16 ---
     

    LLVM 20+

    atan2_f32 ¶

    @(link_name="llvm.atan2.f32")
    atan2_f32 :: proc "none" (y, x: f32) -> f32 ---
     

    LLVM 20+

    atan2_f64 ¶

    @(link_name="llvm.atan2.f64")
    atan2_f64 :: proc "none" (y, x: f64) -> f64 ---

    atan_f16 ¶

    @(link_name="llvm.atan.f16")
    atan_f16 :: proc "none" (f16) -> f16 ---
     

    LLVM 19+

    atan_f32 ¶

    @(link_name="llvm.atan.f32")
    atan_f32 :: proc "none" (f32) -> f32 ---
     

    LLVM 19+

    atan_f64 ¶

    @(link_name="llvm.atan.f64")
    atan_f64 :: proc "none" (f64) -> f64 ---

    bit_reverse_u128 ¶

    @(link_name="llvm.bitreverse.i128")
    bit_reverse_u128 :: proc "none" (u128) -> u128 ---

    bit_reverse_u16 ¶

    @(link_name="llvm.bitreverse.i16")
    bit_reverse_u16 :: proc "none" (u16) -> u16 ---

    bit_reverse_u32 ¶

    @(link_name="llvm.bitreverse.i32")
    bit_reverse_u32 :: proc "none" (u32) -> u32 ---

    bit_reverse_u64 ¶

    @(link_name="llvm.bitreverse.i64")
    bit_reverse_u64 :: proc "none" (u64) -> u64 ---

    bit_reverse_u8 ¶

    @(link_name="llvm.bitreverse.i8")
    bit_reverse_u8 :: proc "none" (u8) -> u8 ---

    bswap_u128 ¶

    @(link_name="llvm.bswap.i128")
    bswap_u128 :: proc "none" (u128) -> u128 ---

    bswap_u16 ¶

    @(link_name="llvm.bswap.i16")
    bswap_u16 :: proc "none" (u16) -> u16 ---

    bswap_u32 ¶

    @(link_name="llvm.bswap.i32")
    bswap_u32 :: proc "none" (u32) -> u32 ---

    bswap_u64 ¶

    @(link_name="llvm.bswap.i64")
    bswap_u64 :: proc "none" (u64) -> u64 ---

    ceil_f16 ¶

    @(link_name="llvm.ceil.f16")
    ceil_f16 :: proc "none" (f16) -> f16 ---

    ceil_f32 ¶

    @(link_name="llvm.ceil.f32")
    ceil_f32 :: proc "none" (f32) -> f32 ---

    ceil_f64 ¶

    @(link_name="llvm.ceil.f64")
    ceil_f64 :: proc "none" (f64) -> f64 ---

    clear_cache ¶

    @(link_name="llvm.clear_cache")
    clear_cache :: proc "none" (begin, end: rawptr) ---
     

    not supported on wasm

    copy_sign_f16 ¶

    @(link_name="llvm.copysign.f16")
    copy_sign_f16 :: proc "none" (mag, sgn: f16) -> f16 ---

    copy_sign_f32 ¶

    @(link_name="llvm.copysign.f32")
    copy_sign_f32 :: proc "none" (mag, sgn: f32) -> f32 ---

    copy_sign_f64 ¶

    @(link_name="llvm.copysign.f64")
    copy_sign_f64 :: proc "none" (mag, sgn: f64) -> f64 ---

    cos_f16 ¶

    @(link_name="llvm.cos.f16")
    cos_f16 :: proc "none" (f16) -> f16 ---

    cos_f32 ¶

    @(link_name="llvm.cos.f32")
    cos_f32 :: proc "none" (f32) -> f32 ---

    cos_f64 ¶

    @(link_name="llvm.cos.f64")
    cos_f64 :: proc "none" (f64) -> f64 ---

    cosh_f16 ¶

    @(link_name="llvm.cosh.f16")
    cosh_f16 :: proc "none" (f16) -> f16 ---
     

    LLVM 19+

    cosh_f32 ¶

    @(link_name="llvm.cosh.f32")
    cosh_f32 :: proc "none" (f32) -> f32 ---
     

    LLVM 19+

    cosh_f64 ¶

    @(link_name="llvm.cosh.f64")
    cosh_f64 :: proc "none" (f64) -> f64 ---

    ctlz_u128 ¶

    @(link_name="llvm.ctlz.i128")
    ctlz_u128 :: proc "none" (x: u128, #const is_zero_poison: bool = false) -> u128 ---

    ctlz_u16 ¶

    @(link_name="llvm.ctlz.i16")
    ctlz_u16 :: proc "none" (x: u16, #const is_zero_poison: bool = false) -> u16 ---

    ctlz_u32 ¶

    @(link_name="llvm.ctlz.i32")
    ctlz_u32 :: proc "none" (x: u32, #const is_zero_poison: bool = false) -> u32 ---

    ctlz_u64 ¶

    @(link_name="llvm.ctlz.i64")
    ctlz_u64 :: proc "none" (x: u64, #const is_zero_poison: bool = false) -> u64 ---

    ctlz_u8 ¶

    @(link_name="llvm.ctlz.i8")
    ctlz_u8 :: proc "none" (x: u8, #const is_zero_poison: bool = false) -> u8 ---
     

    is_zero_poison makes a zero input give a poison result

    ctpop_u128 ¶

    @(link_name="llvm.ctpop.i128")
    ctpop_u128 :: proc "none" (u128) -> u128 ---

    ctpop_u16 ¶

    @(link_name="llvm.ctpop.i16")
    ctpop_u16 :: proc "none" (u16) -> u16 ---

    ctpop_u32 ¶

    @(link_name="llvm.ctpop.i32")
    ctpop_u32 :: proc "none" (u32) -> u32 ---

    ctpop_u64 ¶

    @(link_name="llvm.ctpop.i64")
    ctpop_u64 :: proc "none" (u64) -> u64 ---

    ctpop_u8 ¶

    @(link_name="llvm.ctpop.i8")
    ctpop_u8 :: proc "none" (u8) -> u8 ---

    cttz_u128 ¶

    @(link_name="llvm.cttz.i128")
    cttz_u128 :: proc "none" (x: u128, #const is_zero_poison: bool = false) -> u128 ---

    cttz_u16 ¶

    @(link_name="llvm.cttz.i16")
    cttz_u16 :: proc "none" (x: u16, #const is_zero_poison: bool = false) -> u16 ---

    cttz_u32 ¶

    @(link_name="llvm.cttz.i32")
    cttz_u32 :: proc "none" (x: u32, #const is_zero_poison: bool = false) -> u32 ---

    cttz_u64 ¶

    @(link_name="llvm.cttz.i64")
    cttz_u64 :: proc "none" (x: u64, #const is_zero_poison: bool = false) -> u64 ---

    cttz_u8 ¶

    @(link_name="llvm.cttz.i8")
    cttz_u8 :: proc "none" (x: u8, #const is_zero_poison: bool = false) -> u8 ---

    exp10_f16 ¶

    @(link_name="llvm.exp10.f16")
    exp10_f16 :: proc "none" (f16) -> f16 ---
     

    LLVM 18+, calls exp10 from the C library, which Windows does not have

    exp10_f32 ¶

    @(link_name="llvm.exp10.f32")
    exp10_f32 :: proc "none" (f32) -> f32 ---
     

    LLVM 18+, calls exp10 from the C library, which Windows does not have

    exp10_f64 ¶

    @(link_name="llvm.exp10.f64")
    exp10_f64 :: proc "none" (f64) -> f64 ---

    exp2_f16 ¶

    @(link_name="llvm.exp2.f16")
    exp2_f16 :: proc "none" (f16) -> f16 ---

    exp2_f32 ¶

    @(link_name="llvm.exp2.f32")
    exp2_f32 :: proc "none" (f32) -> f32 ---

    exp2_f64 ¶

    @(link_name="llvm.exp2.f64")
    exp2_f64 :: proc "none" (f64) -> f64 ---

    exp_f16 ¶

    @(link_name="llvm.exp.f16")
    exp_f16 :: proc "none" (f16) -> f16 ---

    exp_f32 ¶

    @(link_name="llvm.exp.f32")
    exp_f32 :: proc "none" (f32) -> f32 ---

    exp_f64 ¶

    @(link_name="llvm.exp.f64")
    exp_f64 :: proc "none" (f64) -> f64 ---

    fabs_f16 ¶

    @(link_name="llvm.fabs.f16")
    fabs_f16 :: proc "none" (f16) -> f16 ---

    fabs_f32 ¶

    @(link_name="llvm.fabs.f32")
    fabs_f32 :: proc "none" (f32) -> f32 ---

    fabs_f64 ¶

    @(link_name="llvm.fabs.f64")
    fabs_f64 :: proc "none" (f64) -> f64 ---

    fake_use ¶

    @(link_name="llvm.fake.use")
    fake_use :: proc "none" (arg: ..any) ---

    floor_f16 ¶

    @(link_name="llvm.floor.f16")
    floor_f16 :: proc "none" (f16) -> f16 ---

    floor_f32 ¶

    @(link_name="llvm.floor.f32")
    floor_f32 :: proc "none" (f32) -> f32 ---

    floor_f64 ¶

    @(link_name="llvm.floor.f64")
    floor_f64 :: proc "none" (f64) -> f64 ---

    fma_f16 ¶

    @(link_name="llvm.fma.f16")
    fma_f16 :: proc "none" (a, b, c: f16) -> f16 ---

    fma_f32 ¶

    @(link_name="llvm.fma.f32")
    fma_f32 :: proc "none" (a, b, c: f32) -> f32 ---

    fma_f64 ¶

    @(link_name="llvm.fma.f64")
    fma_f64 :: proc "none" (a, b, c: f64) -> f64 ---

    frame_address ¶

    @(link_name="llvm.frameaddress.p0")
    frame_address :: proc "none" (#const level: u32 = 0) -> rawptr ---
     

    a level above 0 is ignored on Windows amd64, and gives nil on wasm

    frexp_f16 ¶

    @(link_name="llvm.frexp.f16.i32")
    frexp_f16 :: proc "none" (val: f16) -> (fraction: f16, exp: i32) ---

    frexp_f32 ¶

    @(link_name="llvm.frexp.f32.i32")
    frexp_f32 :: proc "none" (val: f32) -> (fraction: f32, exp: i32) ---

    frexp_f64 ¶

    @(link_name="llvm.frexp.f64.i32")
    frexp_f64 :: proc "none" (val: f64) -> (fraction: f64, exp: i32) ---

    fshl_u128 ¶

    @(link_name="llvm.fshl.i128")
    fshl_u128 :: proc "none" (a, b, c: u128) -> u128 ---

    fshl_u16 ¶

    @(link_name="llvm.fshl.i16")
    fshl_u16 :: proc "none" (a, b, c: u16) -> u16 ---

    fshl_u32 ¶

    @(link_name="llvm.fshl.i32")
    fshl_u32 :: proc "none" (a, b, c: u32) -> u32 ---

    fshl_u64 ¶

    @(link_name="llvm.fshl.i64")
    fshl_u64 :: proc "none" (a, b, c: u64) -> u64 ---

    fshl_u8 ¶

    @(link_name="llvm.fshl.i8")
    fshl_u8 :: proc "none" (a, b, c: u8) -> u8 ---

    fshr_u128 ¶

    @(link_name="llvm.fshr.i128")
    fshr_u128 :: proc "none" (a, b, c: u128) -> u128 ---

    fshr_u16 ¶

    @(link_name="llvm.fshr.i16")
    fshr_u16 :: proc "none" (a, b, c: u16) -> u16 ---

    fshr_u32 ¶

    @(link_name="llvm.fshr.i32")
    fshr_u32 :: proc "none" (a, b, c: u32) -> u32 ---

    fshr_u64 ¶

    @(link_name="llvm.fshr.i64")
    fshr_u64 :: proc "none" (a, b, c: u64) -> u64 ---

    fshr_u8 ¶

    @(link_name="llvm.fshr.i8")
    fshr_u8 :: proc "none" (a, b, c: u8) -> u8 ---

    get_dynamic_area_offset_i64 ¶

    @(link_name="llvm.get.dynamic.area.offset.i64")
    get_dynamic_area_offset_i64 :: proc "none" () -> i64 ---

    ldexp_f16 ¶

    @(link_name="llvm.ldexp.f16.i32")
    ldexp_f16 :: proc "none" (val: f16, exp: i32) -> f16 ---

    ldexp_f32 ¶

    @(link_name="llvm.ldexp.f32.i32")
    ldexp_f32 :: proc "none" (val: f32, exp: i32) -> f32 ---

    ldexp_f64 ¶

    @(link_name="llvm.ldexp.f64.i32")
    ldexp_f64 :: proc "none" (val: f64, exp: i32) -> f64 ---

    llrint_f32_i64 ¶

    @(link_name="llvm.llrint.i64.f32")
    llrint_f32_i64 :: proc "none" (f32) -> i64 ---

    llrint_f64_i64 ¶

    @(link_name="llvm.llrint.i64.f64")
    llrint_f64_i64 :: proc "none" (f64) -> i64 ---

    llround_f32_i64 ¶

    @(link_name="llvm.llround.i64.f32")
    llround_f32_i64 :: proc "none" (f32) -> i64 ---

    llround_f64_i64 ¶

    @(link_name="llvm.llround.i64.f64")
    llround_f64_i64 :: proc "none" (f64) -> i64 ---

    log10_f16 ¶

    @(link_name="llvm.log10.f16")
    log10_f16 :: proc "none" (f16) -> f16 ---

    log10_f32 ¶

    @(link_name="llvm.log10.f32")
    log10_f32 :: proc "none" (f32) -> f32 ---

    log10_f64 ¶

    @(link_name="llvm.log10.f64")
    log10_f64 :: proc "none" (f64) -> f64 ---

    log2_f16 ¶

    @(link_name="llvm.log2.f16")
    log2_f16 :: proc "none" (f16) -> f16 ---

    log2_f32 ¶

    @(link_name="llvm.log2.f32")
    log2_f32 :: proc "none" (f32) -> f32 ---

    log2_f64 ¶

    @(link_name="llvm.log2.f64")
    log2_f64 :: proc "none" (f64) -> f64 ---

    log_f16 ¶

    @(link_name="llvm.log.f16")
    log_f16 :: proc "none" (f16) -> f16 ---

    log_f32 ¶

    @(link_name="llvm.log.f32")
    log_f32 :: proc "none" (f32) -> f32 ---

    log_f64 ¶

    @(link_name="llvm.log.f64")
    log_f64 :: proc "none" (f64) -> f64 ---

    lrint_f32_i32 ¶

    @(link_name="llvm.lrint.i32.f32")
    lrint_f32_i32 :: proc "none" (f32) -> i32 ---

    lrint_f32_i64 ¶

    @(link_name="llvm.lrint.i64.f32")
    lrint_f32_i64 :: proc "none" (f32) -> i64 ---

    lrint_f64_i32 ¶

    @(link_name="llvm.lrint.i32.f64")
    lrint_f64_i32 :: proc "none" (f64) -> i32 ---

    lrint_f64_i64 ¶

    @(link_name="llvm.lrint.i64.f64")
    lrint_f64_i64 :: proc "none" (f64) -> i64 ---

    lround_f32_i32 ¶

    @(link_name="llvm.lround.i32.f32")
    lround_f32_i32 :: proc "none" (f32) -> i32 ---

    lround_f32_i64 ¶

    @(link_name="llvm.lround.i64.f32")
    lround_f32_i64 :: proc "none" (f32) -> i64 ---

    lround_f64_i32 ¶

    @(link_name="llvm.lround.i32.f64")
    lround_f64_i32 :: proc "none" (f64) -> i32 ---

    lround_f64_i64 ¶

    @(link_name="llvm.lround.i64.f64")
    lround_f64_i64 :: proc "none" (f64) -> i64 ---

    max_num_f16 ¶

    @(link_name="llvm.maxnum.f16")
    max_num_f16 :: proc "none" (val0, val1: f16) -> f16 ---

    max_num_f32 ¶

    @(link_name="llvm.maxnum.f32")
    max_num_f32 :: proc "none" (val0, val1: f32) -> f32 ---

    max_num_f64 ¶

    @(link_name="llvm.maxnum.f64")
    max_num_f64 :: proc "none" (val0, val1: f64) -> f64 ---

    maximum_f16 ¶

    @(link_name="llvm.maximum.f16")
    maximum_f16 :: proc "none" (val0, val1: f16) -> f16 ---

    maximum_f32 ¶

    @(link_name="llvm.maximum.f32")
    maximum_f32 :: proc "none" (val0, val1: f32) -> f32 ---

    maximum_f64 ¶

    @(link_name="llvm.maximum.f64")
    maximum_f64 :: proc "none" (val0, val1: f64) -> f64 ---

    maximum_num_f16 ¶

    @(link_name="llvm.maximumnum.f16")
    maximum_num_f16 :: proc "none" (val0, val1: f16) -> f16 ---
     

    LLVM 20+, whose x86 code at -o:none and -o:minimal can return a NaN operand when the other is a constant

    maximum_num_f32 ¶

    @(link_name="llvm.maximumnum.f32")
    maximum_num_f32 :: proc "none" (val0, val1: f32) -> f32 ---
     

    LLVM 20+, whose x86 code at -o:none and -o:minimal can return a NaN operand when the other is a constant

    maximum_num_f64 ¶

    @(link_name="llvm.maximumnum.f64")
    maximum_num_f64 :: proc "none" (val0, val1: f64) -> f64 ---

    memcpy ¶

    @(link_name="llvm.memcpy.p0.p0.i64")
    memcpy :: proc "none" (dst, src: rawptr, len: int, #const is_volatile: bool = false) ---

    memcpy_inline ¶

    @(link_name="llvm.memcpy.inline.p0.p0.i64")
    memcpy_inline :: proc "none" (dst, src: rawptr, len: int, #const is_volatile: bool = false) ---

    memmove ¶

    @(link_name="llvm.memmove.p0.p0.i64")
    memmove :: proc "none" (dst, src: rawptr, len: int, #const is_volatile: bool = false) ---

    memset ¶

    @(link_name="llvm.memset.p0.i64")
    memset :: proc "none" (dst: rawptr, val: u8, len: int, #const is_volatile: bool = false) ---

    memset_inline ¶

    @(link_name="llvm.memset.inline.p0.i64")
    memset_inline :: proc "none" (
    	dst:         rawptr, 
    	val:         u8, 
    	len:         int, 
    	#const is_volatile: bool = false, 
    ) ---

    min_num_f16 ¶

    @(link_name="llvm.minnum.f16")
    min_num_f16 :: proc "none" (val0, val1: f16) -> f16 ---

    min_num_f32 ¶

    @(link_name="llvm.minnum.f32")
    min_num_f32 :: proc "none" (val0, val1: f32) -> f32 ---

    min_num_f64 ¶

    @(link_name="llvm.minnum.f64")
    min_num_f64 :: proc "none" (val0, val1: f64) -> f64 ---

    minimum_f16 ¶

    @(link_name="llvm.minimum.f16")
    minimum_f16 :: proc "none" (val0, val1: f16) -> f16 ---

    minimum_f32 ¶

    @(link_name="llvm.minimum.f32")
    minimum_f32 :: proc "none" (val0, val1: f32) -> f32 ---

    minimum_f64 ¶

    @(link_name="llvm.minimum.f64")
    minimum_f64 :: proc "none" (val0, val1: f64) -> f64 ---

    minimum_num_f16 ¶

    @(link_name="llvm.minimumnum.f16")
    minimum_num_f16 :: proc "none" (val0, val1: f16) -> f16 ---
     

    LLVM 20+, whose x86 code at -o:none and -o:minimal can return a NaN operand when the other is a constant

    minimum_num_f32 ¶

    @(link_name="llvm.minimumnum.f32")
    minimum_num_f32 :: proc "none" (val0, val1: f32) -> f32 ---
     

    LLVM 20+, whose x86 code at -o:none and -o:minimal can return a NaN operand when the other is a constant

    minimum_num_f64 ¶

    @(link_name="llvm.minimumnum.f64")
    minimum_num_f64 :: proc "none" (val0, val1: f64) -> f64 ---

    nearby_int_f16 ¶

    @(link_name="llvm.nearbyint.f16")
    nearby_int_f16 :: proc "none" (f16) -> f16 ---

    nearby_int_f32 ¶

    @(link_name="llvm.nearbyint.f32")
    nearby_int_f32 :: proc "none" (f32) -> f32 ---

    nearby_int_f64 ¶

    @(link_name="llvm.nearbyint.f64")
    nearby_int_f64 :: proc "none" (f64) -> f64 ---

    pow_f16 ¶

    @(link_name="llvm.pow.f16")
    pow_f16 :: proc "none" (val, power: f16) -> f16 ---

    pow_f32 ¶

    @(link_name="llvm.pow.f32")
    pow_f32 :: proc "none" (val, power: f32) -> f32 ---

    pow_f64 ¶

    @(link_name="llvm.pow.f64")
    pow_f64 :: proc "none" (val, power: f64) -> f64 ---

    powi_f16 ¶

    @(link_name="llvm.powi.f16.i32")
    powi_f16 :: proc "none" (val: f16, power: i32) -> f16 ---

    powi_f32 ¶

    @(link_name="llvm.powi.f32.i32")
    powi_f32 :: proc "none" (val: f32, power: i32) -> f32 ---

    powi_f64 ¶

    @(link_name="llvm.powi.f64.i32")
    powi_f64 :: proc "none" (val: f64, power: i32) -> f64 ---

    prefetch ¶

    @(link_name="llvm.prefetch.p0")
    prefetch :: proc "none" (
    	address:  rawptr, 
    	#const rw: Prefetch_Read_Write, 
    	#const locality: Prefetch_Locality, 
    	#const cache: Prefetch_Cache, 
    ) ---

    read_cycle_counter ¶

    @(link_name="llvm.readcyclecounter")
    read_cycle_counter :: proc "none" () -> u64 ---

    read_steady_counter ¶

    @(link_name="llvm.readsteadycounter")
    read_steady_counter :: proc "none" () -> u64 ---
     

    LLVM 19+, 0 on targets without one

    return_address ¶

    @(link_name="llvm.returnaddress")
    return_address :: proc "none" (#const level: u32 = 0) -> rawptr ---
     

    not supported on wasm

    rint_f16 ¶

    @(link_name="llvm.rint.f16")
    rint_f16 :: proc "none" (f16) -> f16 ---

    rint_f32 ¶

    @(link_name="llvm.rint.f32")
    rint_f32 :: proc "none" (f32) -> f32 ---

    rint_f64 ¶

    @(link_name="llvm.rint.f64")
    rint_f64 :: proc "none" (f64) -> f64 ---

    round_even_f16 ¶

    @(link_name="llvm.roundeven.f16")
    round_even_f16 :: proc "none" (f16) -> f16 ---

    round_even_f32 ¶

    @(link_name="llvm.roundeven.f32")
    round_even_f32 :: proc "none" (f32) -> f32 ---

    round_even_f64 ¶

    @(link_name="llvm.roundeven.f64")
    round_even_f64 :: proc "none" (f64) -> f64 ---

    round_f16 ¶

    @(link_name="llvm.round.f16")
    round_f16 :: proc "none" (f16) -> f16 ---

    round_f32 ¶

    @(link_name="llvm.round.f32")
    round_f32 :: proc "none" (f32) -> f32 ---

    round_f64 ¶

    @(link_name="llvm.round.f64")
    round_f64 :: proc "none" (f64) -> f64 ---

    sin_f16 ¶

    @(link_name="llvm.sin.f16")
    sin_f16 :: proc "none" (f16) -> f16 ---

    sin_f32 ¶

    @(link_name="llvm.sin.f32")
    sin_f32 :: proc "none" (f32) -> f32 ---

    sin_f64 ¶

    @(link_name="llvm.sin.f64")
    sin_f64 :: proc "none" (f64) -> f64 ---

    sincos_f16 ¶

    @(link_name="llvm.sincos.f16")
    sincos_f16 :: proc "none" (f16) -> (sin, cos: f16) ---
     

    LLVM 20+

    sincos_f32 ¶

    @(link_name="llvm.sincos.f32")
    sincos_f32 :: proc "none" (f32) -> (sin, cos: f32) ---
     

    LLVM 20+

    sincos_f64 ¶

    @(link_name="llvm.sincos.f64")
    sincos_f64 :: proc "none" (f64) -> (sin, cos: f64) ---

    sinh_f16 ¶

    @(link_name="llvm.sinh.f16")
    sinh_f16 :: proc "none" (f16) -> f16 ---
     

    LLVM 19+

    sinh_f32 ¶

    @(link_name="llvm.sinh.f32")
    sinh_f32 :: proc "none" (f32) -> f32 ---
     

    LLVM 19+

    sinh_f64 ¶

    @(link_name="llvm.sinh.f64")
    sinh_f64 :: proc "none" (f64) -> f64 ---

    sqrt_f16 ¶

    @(link_name="llvm.sqrt.f16")
    sqrt_f16 :: proc "none" (f16) -> f16 ---

    sqrt_f32 ¶

    @(link_name="llvm.sqrt.f32")
    sqrt_f32 :: proc "none" (f32) -> f32 ---

    sqrt_f64 ¶

    @(link_name="llvm.sqrt.f64")
    sqrt_f64 :: proc "none" (f64) -> f64 ---

    stack_pointer_on_entry ¶

    @(link_name="llvm.sponentry.p0")
    stack_pointer_on_entry :: proc "none" () -> rawptr ---
     

    ARM and AArch64 only

    stack_restore ¶

    @(link_name="llvm.stackrestore.p0")
    stack_restore :: proc "none" (ptr: rawptr) ---

    stack_save ¶

    @(link_name="llvm.stacksave.p0")
    stack_save :: proc "none" () -> rawptr ---
     

    LLVM 18+, LLVM 17 names these without the .p0

    tan_f16 ¶

    @(link_name="llvm.tan.f16")
    tan_f16 :: proc "none" (f16) -> f16 ---
     

    LLVM 19+

    tan_f32 ¶

    @(link_name="llvm.tan.f32")
    tan_f32 :: proc "none" (f32) -> f32 ---
     

    LLVM 19+

    tan_f64 ¶

    @(link_name="llvm.tan.f64")
    tan_f64 :: proc "none" (f64) -> f64 ---

    tanh_f16 ¶

    @(link_name="llvm.tanh.f16")
    tanh_f16 :: proc "none" (f16) -> f16 ---
     

    LLVM 19+

    tanh_f32 ¶

    @(link_name="llvm.tanh.f32")
    tanh_f32 :: proc "none" (f32) -> f32 ---
     

    LLVM 19+

    tanh_f64 ¶

    @(link_name="llvm.tanh.f64")
    tanh_f64 :: proc "none" (f64) -> f64 ---

    thread_pointer ¶

    @(link_name="llvm.thread.pointer")
    thread_pointer :: proc "none" () -> rawptr ---
     

    not supported on Windows, nor on Darwin amd64

    trunc_f16 ¶

    @(link_name="llvm.trunc.f16")
    trunc_f16 :: proc "none" (f16) -> f16 ---

    trunc_f32 ¶

    @(link_name="llvm.trunc.f32")
    trunc_f32 :: proc "none" (f32) -> f32 ---

    trunc_f64 ¶

    @(link_name="llvm.trunc.f64")
    trunc_f64 :: proc "none" (f64) -> f64 ---

    Procedure Groups

    This section is empty.

    Only on JS 1

    Declared only when building for JS; the rest of this page is from a Windows build.

    get_dynamic_area_offset_i32 ¶

    @(link_name="llvm.get.dynamic.area.offset.i32")
    get_dynamic_area_offset_i32 :: proc "none" () -> i32 ---

    Source Files

    Generation Information

    Generated with odin version dev-2026-11 (vendor "odin") Windows_amd64 @ 2026-11-28 21:05:09.772358800 +0000 UTC