Documentation ¶
Index ¶
- func BuildCallGraph(projectPath string, packagePattern string, funcDecls map[FuncDescriptor]bool) map[FuncDescriptor][]FuncDescriptor
- func Contains(a []FuncDescriptor, x FuncDescriptor) bool
- func ExecutePasses(projectPath string, packagePattern string, rootFunctions []FuncDescriptor, ...)
- func ExecutePassesDumpIr(projectPath string, packagePattern string, rootFunctions []FuncDescriptor, ...)
- func FindFuncDecls(projectPath string, packagePattern string) map[FuncDescriptor]bool
- func Generatecfg(callgraph map[FuncDescriptor][]FuncDescriptor, path string)
- func Instrument(projectPath string, packagePattern string, file string, ...)
- func PropagateContext(projectPath string, packagePattern string, ...)
- func Revert(path string)
- func SearchFiles(root string, ext string) []string
- type FuncDescriptor
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 SearchFiles ¶
Types ¶
type FuncDescriptor ¶
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
Click to show internal directories.
Click to hide internal directories.