github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/inline/interleaved/interleaved.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 interleaved implements the interleaved devirtualization and
     6  // inlining pass.
     7  package interleaved
     8  
     9  import (
    10  	"github.com/shogo82148/std/cmd/compile/internal/ir"
    11  	"github.com/shogo82148/std/cmd/compile/internal/pgo"
    12  )
    13  
    14  // DevirtualizeAndInlinePackage interleaves devirtualization and inlining on
    15  // all functions within pkg.
    16  func DevirtualizeAndInlinePackage(pkg *ir.Package, profile *pgo.Profile)
    17  
    18  // DevirtualizeAndInlineFunc interleaves devirtualization and inlining
    19  // on a single function.
    20  func DevirtualizeAndInlineFunc(fn *ir.Func, profile *pgo.Profile)