abla/simd/target

Generated from source.

Import with import "abla/simd/target".

Source: abla/simd/target/entry.ab

ablaSimdTargetArch (extern)

noescape extern:"intrinsic" fun ablaSimdTargetArch(): int

Returns the target architecture code as a compile-time constant.

ablaSimdCpuProbe (extern)

noescape extern:"intrinsic" fun ablaSimdCpuProbe(leaf: int, sub: int, register: int): int

Reads x86 CPUID or XCR0, returns the AArch64 feature word, or returns zero on other architectures.

SIMD_ARCH_OTHER (val)

val SIMD_ARCH_OTHER

Identifies a compilation target outside the named SIMD architectures.

SIMD_ARCH_X86_64 (val)

val SIMD_ARCH_X86_64

Identifies an x86-64 compilation target.

SIMD_ARCH_AARCH64 (val)

val SIMD_ARCH_AARCH64

Identifies an AArch64 compilation target.

SIMD_ARCH_WASM (val)

val SIMD_ARCH_WASM

Identifies a WebAssembly compilation target.

SIMD_ARCH_XTENSA (val)

val SIMD_ARCH_XTENSA

Identifies an Xtensa compilation target.

simdTargetArch (fun)

fun simdTargetArch(): int

The architecture this program is compiled for; constant in the compiled code.

targetHas (fun)

fun targetHas(feature: string): bool

Whether the build's baseline has feature on every CPU of the target: "sse2" on x86-64, "neon" on AArch64, "simd128" on Wasm. The answer is a constant, so a branch on it costs nothing. Anything else needs cpuHas.

simdFeatureKnown (fun)

fun simdFeatureKnown(feature: string): bool

Reports whether the name is one of the features recognized by runtime SIMD probing.

cpuHas (fun)

fun cpuHas(feature: string): bool

Whether this CPU, the one running now, has feature: "aes", "clmul", "avx2", "sse41", "ssse3", "avx512f", "avx512bw", or what targetHas answers for. False where the target has no way to have it.

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.