llvmfmv

package
v1.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package llvmfmv implements early, CPU-guarded LLVM function specialization directly through the LLVM Go API, independently of optimization and LTO.

Index

Constants

View Source
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

func Run(mod llvm.Module, baseline string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL