plan9asm

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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
}

Jump to

Keyboard shortcuts

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