midway

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 11 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 midway specializes portable SIMD source before construction of Go SSA. The input is type-checked Go syntax. The output must be type-checked again.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rewrite

func Rewrite(fset *token.FileSet, pkg *types.Package, info *types.Info, files []*ast.File) (changed bool, imports []string, err error)

Rewrite replaces portable operations in dependent declarations with the official bridge's emulated and SIMD128 representations. Original types and signatures remain available to the initial check of importing packages. Imports reports additional dependencies that the loader must make available to the second type check; their packages already occur below simd in the graph. Rewriting mutates files in place. On error, callers must treat both syntax and type information as invalid; the loader marks the package IllTyped and excludes it from its cache before any downstream compilation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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