plan9asm

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 10 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterFuncs

func FilterFuncs(pkgPath, goos, goarch string, funcs []extplan9asm.Func, resolve func(sym string) string) []extplan9asm.Func

func HasAnyTextAsm

func HasAnyTextAsm(overlay map[string][]byte, files []string) (bool, error)

func ReadFileWithOverlay

func ReadFileWithOverlay(overlay map[string][]byte, path string) ([]byte, error)

func ResolveSymFunc

func ResolveSymFunc(pkgPath string) func(sym string) string

func StripABISuffix

func StripABISuffix(sym string) string

Types

type FileTranslation

type FileTranslation struct {
	LLVMIR     string                         `json:"-"`
	Signatures map[string]extplan9asm.FuncSig `json:"signatures"`
	Functions  []FunctionInfo                 `json:"functions"`
}

func TranslateFileForPkg

func TranslateFileForPkg(pkg *packages.Package, sfile string, goos string, goarch string, overlay map[string][]byte) (*FileTranslation, error)

func TranslateFileForPkgWithOptions

func TranslateFileForPkgWithOptions(pkg *packages.Package, sfile string, goos string, goarch string, overlay map[string][]byte, opt TranslateOptions) (*FileTranslation, error)

func TranslateSourceForPkg

func TranslateSourceForPkg(pkg *packages.Package, sfile string, src []byte, goos string, goarch string) (*FileTranslation, error)

func TranslateSourceForPkgWithOptions

func TranslateSourceForPkgWithOptions(pkg *packages.Package, sfile string, src []byte, goos string, goarch string, opt TranslateOptions) (*FileTranslation, error)

type FunctionInfo

type FunctionInfo struct {
	TextSymbol     string `json:"text_symbol"`
	ResolvedSymbol string `json:"resolved_symbol"`
}

type ModuleTranslation

type ModuleTranslation struct {
	Module     gllvm.Module
	Signatures map[string]extplan9asm.FuncSig
	Functions  []FunctionInfo
}

func TranslateSourceModuleForPkg

func TranslateSourceModuleForPkg(pkg *packages.Package, sfile string, src []byte, goos string, goarch string) (*ModuleTranslation, error)

func TranslateSourceModuleForPkgWithOptions

func TranslateSourceModuleForPkgWithOptions(pkg *packages.Package, sfile string, src []byte, goos string, goarch string, opt TranslateOptions) (*ModuleTranslation, error)

type TranslateOptions

type TranslateOptions struct {
	AnnotateSource bool
	GOARM          string
}

Jump to

Keyboard shortcuts

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