lib

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCallGraph

func BuildCallGraph(projectPath string, packagePattern string, funcDecls map[FuncDescriptor]bool) map[FuncDescriptor][]FuncDescriptor

func Contains

func Contains(a []FuncDescriptor, x FuncDescriptor) bool

func ExecutePasses

func ExecutePasses(projectPath string,
	packagePattern string,
	rootFunctions []FuncDescriptor,
	funcDecls map[FuncDescriptor]bool,
	backwardCallGraph map[FuncDescriptor][]FuncDescriptor)

func ExecutePassesDumpIr

func ExecutePassesDumpIr(projectPath string,
	packagePattern string,
	rootFunctions []FuncDescriptor,
	funcDecls map[FuncDescriptor]bool,
	backwardCallGraph map[FuncDescriptor][]FuncDescriptor)

func FindFuncDecls

func FindFuncDecls(projectPath string, packagePattern string) map[FuncDescriptor]bool

func Generatecfg

func Generatecfg(callgraph map[FuncDescriptor][]FuncDescriptor, path string)

func Instrument

func Instrument(projectPath string,
	packagePattern string,
	file string,
	callgraph map[FuncDescriptor][]FuncDescriptor,
	rootFunctions []FuncDescriptor,
	passFileSuffix string)

func PropagateContext

func PropagateContext(projectPath string,
	packagePattern string,
	callgraph map[FuncDescriptor][]FuncDescriptor,
	rootFunctions []FuncDescriptor,
	funcDecls map[FuncDescriptor]bool,
	passFileSuffix string)

func Revert

func Revert(path string)

func SearchFiles

func SearchFiles(root string, ext string) []string

Types

type FuncDescriptor

type FuncDescriptor struct {
	Id       string
	DeclType string
}

func FindRootFunctions

func FindRootFunctions(projectPath string, packagePattern string) []FuncDescriptor

func InferRootFunctionsFromGraph

func InferRootFunctionsFromGraph(callgraph map[FuncDescriptor][]FuncDescriptor) []FuncDescriptor

func (FuncDescriptor) TypeHash

func (fd FuncDescriptor) TypeHash() string

Jump to

Keyboard shortcuts

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