Documentation
¶
Overview ¶
Package llvmfmv implements early, CPU-guarded LLVM function specialization directly through the LLVM Go API, independently of optimization and LTO.
Index ¶
Constants ¶
const ( // Shared with the frontend that emits the FMV attributes and CPU queries. EntryAttribute = attributePrefix + "avx2-entry" InlineEntryAttribute = attributePrefix + "inline-entry" QueryAttribute = "llgo.cpu.query" AVX2Query = "x86.avx2" )
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run preserves baseline entries and creates AVX2 implementations of supported SIMD128 functions. It runs after aggregate and target ABI lowering, before target optimization, including in O0 and ModeGen builds. baseline is the resolved compile-time GOAMD64 level, never a host environment read. Running it again is harmless.
Types ¶
This section is empty.