Documentation
¶
Index ¶
- func FilterFuncs(pkgPath, goos, goarch string, funcs []extplan9asm.Func, ...) []extplan9asm.Func
- func HasAnyTextAsm(overlay map[string][]byte, files []string) (bool, error)
- func ReadFileWithOverlay(overlay map[string][]byte, path string) ([]byte, error)
- func ResolveSymFunc(pkgPath string) func(sym string) string
- func StripABISuffix(sym string) string
- type FileTranslation
- func TranslateFileForPkg(pkg *packages.Package, sfile string, goos string, goarch string, ...) (*FileTranslation, error)
- func TranslateFileForPkgWithOptions(pkg *packages.Package, sfile string, goos string, goarch string, ...) (*FileTranslation, error)
- func TranslateSourceForPkg(pkg *packages.Package, sfile string, src []byte, goos string, goarch string) (*FileTranslation, error)
- func TranslateSourceForPkgWithOptions(pkg *packages.Package, sfile string, src []byte, goos string, goarch string, ...) (*FileTranslation, error)
- type FunctionInfo
- type ModuleTranslation
- type TranslateOptions
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 ReadFileWithOverlay ¶
func ResolveSymFunc ¶
func StripABISuffix ¶
Types ¶
type FileTranslation ¶
type FileTranslation struct {
LLVMIR string `json:"-"`
Signatures map[string]extplan9asm.FuncSig `json:"signatures"`
Functions []FunctionInfo `json:"functions"`
}
func TranslateFileForPkg ¶
func TranslateFileForPkgWithOptions ¶
func TranslateFileForPkgWithOptions(pkg *packages.Package, sfile string, goos string, goarch string, overlay map[string][]byte, opt TranslateOptions) (*FileTranslation, error)
func TranslateSourceForPkg ¶
func TranslateSourceForPkgWithOptions ¶
func TranslateSourceForPkgWithOptions(pkg *packages.Package, sfile string, src []byte, goos string, goarch string, opt TranslateOptions) (*FileTranslation, error)
type FunctionInfo ¶
type ModuleTranslation ¶
type ModuleTranslation struct {
Module gllvm.Module
Signatures map[string]extplan9asm.FuncSig
Functions []FunctionInfo
}
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
}
Click to show internal directories.
Click to hide internal directories.