package escape
import "cmd/compile/internal/escape"
Index ¶
- Constants
- func Batch(fns []*ir.Func, recursive bool)
- func Fmt(n ir.Node) string
- func Funcs(all []ir.Node)
- func HeapAllocReason(n ir.Node) string
Constants ¶
const UintptrEscapesNote = "uintptr-escapes"
This special tag is applied to uintptr parameters of functions marked go:uintptrescapes.
const UnsafeUintptrNote = "unsafe-uintptr"
This special tag is applied to uintptr variables that we believe may hold unsafe.Pointers for calls into assembly functions.
Functions ¶
func Batch ¶
Batch performs escape analysis on a minimal batch of functions.
func Fmt ¶
Fmt is called from node printing to print information about escape analysis results.
func Funcs ¶
func HeapAllocReason ¶
HeapAllocReason returns the reason the given Node must be heap allocated, or the empty string if it doesn't.
Source Files ¶
- Version
- v1.17.1
- Published
- Sep 9, 2021
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 15 minutes ago –
Tools for package owners.