github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/inline/inlheur/analyze_func_callsites.go (about) 1 // Copyright 2023 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package inlheur 6 7 import ( 8 "github.com/shogo82148/std/cmd/compile/internal/ir" 9 ) 10 11 // UpdateCallsiteTable handles updating of callerfn's call site table 12 // after an inlined has been carried out, e.g. the call at 'n' as been 13 // turned into the inlined call expression 'ic' within function 14 // callerfn. The chief thing of interest here is to make sure that any 15 // call nodes within 'ic' are added to the call site table for 16 // 'callerfn' and scored appropriately. 17 func UpdateCallsiteTable(callerfn *ir.Func, n *ir.CallExpr, ic *ir.InlinedCallExpr)