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.