Versions in this module Expand all Collapse all v1 v1.22.2 Apr 24, 2024 v1.22.1 Apr 24, 2024 v1.22.0 Feb 13, 2024 Changes in this version + func AnalyzeFunc(fn *ir.Func, canInline func(*ir.Func), budgetForFunc func(*ir.Func) int32, ...) + func BudgetExpansion(maxBudget int32) int32 + func DumpFuncProps(fn *ir.Func, dumpfile string) + func DumpInlCallSiteScores(profile *pgo.Profile, ...) + func Enabled() bool + func EncodeCallSiteKey(cs *CallSite) string + func GetCallSiteScore(fn *ir.Func, call *ir.CallExpr) (int, bool) + func LargestNegativeScoreAdjustment(fn *ir.Func, props *FuncProps) int + func LargestPositiveScoreAdjustment(fn *ir.Func) int + func ScoreCalls(fn *ir.Func) + func ScoreCallsCleanup() + func SetupScoreAdjustments() + func ShouldFoldIfNameConstant(n ir.Node, names []*ir.Name) bool + func TearDown() + func UnitTesting() bool + func UpdateCallsiteTable(callerfn *ir.Func, n *ir.CallExpr, ic *ir.InlinedCallExpr) + type ActualExprPropBits uint8 + const ActualExprConstant + const ActualExprIsConcreteConvIface + const ActualExprIsFunc + const ActualExprIsInlinableFunc + func (i ActualExprPropBits) String() string + type CSPropBits uint32 + const CallSiteInInitFunc + const CallSiteInLoop + const CallSiteOnPanicPath + func (i CSPropBits) String() string + type CallSite struct + ArgProps []ActualExprPropBits + Assign ir.Node + Call *ir.CallExpr + Callee *ir.Func + Flags CSPropBits + ID uint + Score int + ScoreMask scoreAdjustTyp + type CallSiteTab map[*ir.CallExpr]*CallSite + type FuncPropBits uint32 + const FuncPropNeverReturns + func (i FuncPropBits) String() string + type FuncProps struct + Flags FuncPropBits + ParamFlags []ParamPropBits + ResultFlags []ResultPropBits + func DeserializeFromString(s string) *FuncProps + func (fp *FuncProps) String() string + func (fp *FuncProps) ToString(prefix string) string + func (funcProps *FuncProps) SerializeToString() string + type ParamPropBits uint32 + const ParamFeedsIfOrSwitch + const ParamFeedsIndirectCall + const ParamFeedsInterfaceMethodCall + const ParamMayFeedIfOrSwitch + const ParamMayFeedIndirectCall + const ParamMayFeedInterfaceMethodCall + const ParamNoInfo + func (i ParamPropBits) String() string + type ResultPropBits uint32 + const ResultAlwaysSameConstant + const ResultAlwaysSameFunc + const ResultAlwaysSameInlinableFunc + const ResultIsAllocatedMem + const ResultIsConcreteTypeConvertedToInterface + const ResultNoInfo + func (i ResultPropBits) String() string